Questions tagged [remote-notifications]

136 questions
0
votes
1 answer

ios decide whether to silent my remote notification under some conditions on client side code instead of setting content-available

I am trying to implement silent remote condition on CLIENT SIDE. Basically, I will receive a notification from the server and once I received, I will decide whether to silent the notification depends on some conditions before user device get…
0
votes
1 answer

Is there any way to remove all remote notifications that are one day old?

Is there any way to remove all remote notifications that are one day old?
Sadiq Khoja
  • 522
  • 1
  • 5
  • 23
0
votes
1 answer

Remote notification when app is terminated

I am new to iOS and Swift. I am implementing remote notification in my app. Everything works fine when the app is active or in the background. But my notification does not show up when the app is terminated. All I am getting is the alert sound of…
0
votes
1 answer

Why ambiguous reference to member 'Subscript'?

This is my Swift 3 code: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { if let userInfo : Foundation.NSDictionary =…
Megha
  • 95
  • 1
  • 7
0
votes
0 answers

Silent Remote Notification - App Killed status iOS 10

I am integrating Silent Remote notification in my application, all is working fine. But the issue is when my app is in killed state or not running state then no application delegate methods are getting triggered. When I see in device log I can…
0
votes
0 answers

No delegate when remote notification received

I have a MainViewController which has delegate and datasource for an iCarousel item. Everything works fine while working within the app. Inside didReceiveRemoteNotification method I coded below line [[NSNotificationCenter defaultCenter]…
0
votes
3 answers

iOS. Handling push notifications than app is not running

Than app received the push and the app is not running I need to call a network method to my API. I need to do it silently without any interactions from user(like clicking notification or someting else - without it) I set the content-available key in…
0
votes
1 answer

App performs task in background (after receiving a remote notification), but finishes not completely

-(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler It is being called with content-available = 1. A download task starts…
JeeGee
  • 185
  • 1
  • 9
0
votes
1 answer

How to handle additional data GCM in iOS remote messages

I am receiving remote notifications via Google Cloud Messages. A message pops up, a badge gets attached to the app item, also the sound works fine. Now I am trying to access additional data but struggle a bit. That's how the message looks…
0
votes
1 answer

didReceiveRemoteNotification not working when notifications received in background

When App receives local notifications, didReceiveRemoteNotification has some operations. It works fine when app is in foreground. Also when app receives notification in background and open app by clicking on the notification. But NOT working when we…
Rosemol J
  • 183
  • 4
  • 19
0
votes
0 answers

didRegisterForRemoteNotificationsWithDeviceToken not being called in ios 9.3.1

I am implementing remote notifications in one of my applications and for getting the device token i am using the method. - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { …
Ashley Rodrigues
  • 153
  • 2
  • 10
0
votes
4 answers

How to detect Remote notification in didFinishLaunchingWithOption application method in objective c?

when app in not in background mode ,inactive mode and app is completely closed. than how to detect is their any notification using application's delegate "didFinishLaunchingWithOption" method. i have searched a lot about it but not get anything.…
-1
votes
2 answers

Understanding Remote Notifications

I'm really new to notifications and I tried many of the answers mentioned in other questions and I'm pretty much confused. So here's the situation. I have an app that receives remote notifications. I managed to configure it using the…
Tarek
  • 783
  • 10
  • 31
-1
votes
1 answer

silent push notifications for opted out users

I would like to send a silent notification to my app users, to refresh the content. I have read various articles on sending silent notification to opted out users. But, how do we do it? Most opted out users don't have device push tokens. How do you…
-2
votes
1 answer

In swift remote notification is there a way to display a different message in the banner other than the one received from server when app is killed?

If my payload from the server is { "aps" : { "alert" : "You got a mail"; "badge" : 0; } "user": { "name" : "Nicole" } }` And It also gives me some other data about the name of user who sent it . Is there a way to display custom message in…
1 2 3
9
10