silent-notification

didReceiveRemoteNotification not called in iOS 13.3 when app is in background

折月煮酒 提交于 2021-02-06 15:14:28
问题 I am banging my head. I am implementing push notification. Everything is working fine (push is received, badge is updated) but under iOS 13.3 the method application(_:didReceiveRemoteNotification:fetchCompletionHandler:) is not called when the app is in the background. If the app is in the foreground or using an iOS 12 device the method is called. I register for push notification in the following way: [[UNUserNotificationCenter currentNotificationCenter] requestAuthorizationWithOptions:

iOS Silent Push Notification not delivered after device reboot

。_饼干妹妹 提交于 2020-06-17 01:47:45
问题 While testing the delivery of silent notifications (one which has "content-available": 1 in the payload) to my app I noticed that, after device is rebooted notifications are not delivered. Sending the same payload works if the app is running in background or foreground but, after device is rebooted, I do not receive the didReceiveRemoteNotification: callback in AppDelegate . This happens both on iOS 13 and iOS 12 回答1: In short: Your notification was probably delayed by the system and will be

iOS Silent Push Notification not delivered after device reboot

房东的猫 提交于 2020-06-17 01:47:08
问题 While testing the delivery of silent notifications (one which has "content-available": 1 in the payload) to my app I noticed that, after device is rebooted notifications are not delivered. Sending the same payload works if the app is running in background or foreground but, after device is rebooted, I do not receive the didReceiveRemoteNotification: callback in AppDelegate . This happens both on iOS 13 and iOS 12 回答1: In short: Your notification was probably delayed by the system and will be

Android - make phone silent for a limited amounts of time (dyanmically)

本小妞迷上赌 提交于 2020-01-06 05:42:07
问题 I want to put my phone on silent mode for a shorter amount of time. I am using the following code to put my phone on silent mode and it works. However the next segment doesn't put it back to ringer mode/previous mode. if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { // turn off beep sounds mAudioManager.setStreamMute(AudioManager.STREAM_NOTIFICATION, true); mAudioManager.setStreamMute(AudioManager.STREAM_ALARM, true); mAudioManager.setStreamMute(AudioManager.STREAM_MUSIC, true);

Is Silent Remote Notifications possible if user has disabled push for the app?

冷暖自知 提交于 2019-12-17 10:34:09
问题 In my settings tabbar: I have a feature specific switch which can be turned OFF or ON based on API response. From website only admin is authorized to turn ON/OFF. I can make /user API call everytime on settings tap to check the current settings for the user but there are couple of disadvantage like if user is already on setting then it will not update the UI and calling api everytime on settings tap doesn't sounds a perfect solution. I think better solution is to send a silent push

Silent push notifications only delivered if device is charging and/or app is foreground

落爺英雄遲暮 提交于 2019-12-17 10:14:51
问题 I have implemented silent push notifications but I have noticed some strange behaviour. The silent push notifications are handled via: - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler The silent push messages only seem to be received if the device is charging (ie cable connected) and/or if my app is foreground. If I disconnect the device from the charger (or Mac)

How do silent notification behave once phone got Power off & On

主宰稳场 提交于 2019-12-13 16:30:30
问题 I have a application which tries to grab location of user using silent notification at certain situations. I am able to send silent notification to the phones and able to run the background fetch and get the location back to web-service. Comparing the user payload of silent notification I am doing some operation(Initiating the location manager & grabbing location from delegate method) while app is in background/suspended mode. This works in all other cases expect one case which is iPhone

Is it possible to send SILENT LOCAL notification on iOS

谁说胖子不能爱 提交于 2019-12-08 15:32:30
问题 My app wakes up from suspended mode on silent remote notification from a server, exactly as I want. This server sends a push notification with " content-available :1", which does the job. Now I want to do this without the help of a server and so I want to send silent local notifications (from the app) at a time in the future (like after 15 min.), but can't find a way to set "content-available:1". So I end up getting local notification that doesn't wake up my app, as I can with remote

Should I update my app upon receiving payload? Or I should always update it by allowing it to download for itself?

偶尔善良 提交于 2019-11-28 08:10:06
问题 When your iPhone receives a WhatsApp/Telegram push notification e.g. wife: "buy pizza" Question1: Is it that the app has to download/receive that itself . That is the banner that pops up on the phone has to download for itself + my Whatsapp/Telegram has to download again for itself? My friend replied: Push notifications can have the message as a payload. Your app could extract that and dynamically insert into the conversation without making an additional request - I've done that before. Makes

Is Silent Remote Notifications possible if user has disabled push for the app?

杀马特。学长 韩版系。学妹 提交于 2019-11-27 11:54:45
In my settings tabbar: I have a feature specific switch which can be turned OFF or ON based on API response. From website only admin is authorized to turn ON/OFF. I can make /user API call everytime on settings tap to check the current settings for the user but there are couple of disadvantage like if user is already on setting then it will not update the UI and calling api everytime on settings tap doesn't sounds a perfect solution. I think better solution is to send a silent push notification which i can use to make the API call to update the settings UI whenever needed. But if user has