Skip to content

Commit

Permalink
added badge permission for push notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoCaixinha committed Feb 15, 2017
1 parent 3c4ea34 commit 61c6110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Pod/Classes/OrtcClient/RealtimePushAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
[center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert + UNAuthorizationOptionSound) completionHandler:^(BOOL granted, NSError * _Nullable error) {
[center requestAuthorizationWithOptions:(UNAuthorizationOptionBadge + UNAuthorizationOptionAlert + UNAuthorizationOptionSound) completionHandler:^(BOOL granted, NSError * _Nullable error) {
[application registerForRemoteNotifications];
}];
#elif __IPHONE_OS_VERSION_MAX_ALLOWED >= 80000 && __IPHONE_OS_VERSION_MAX_ALLOWED < 100000
Expand Down
2 changes: 1 addition & 1 deletion RealtimeMessaging-iOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

Pod::Spec.new do |s|
s.name = "RealtimeMessaging-iOS"
s.version = "2.1.46"
s.version = "2.1.48"
s.summary = "Realtime Cloud Messaging (ORTC) SDK for iOS"
s.description = <<-DESC
Part of the The Realtime® Framework, Realtime Cloud Messaging (aka ORTC) is a secure, fast and highly scalable cloud-hosted Pub/Sub real-time message broker for web and mobile apps.
Expand Down

0 comments on commit 61c6110

Please sign in to comment.