apple-push-notifications

Notificaton Service Extension Not working

﹥>﹥吖頭↗ 提交于 2020-06-14 06:53:44
问题 Notification is not being displayed when I send mutable-content:1 with push payload neither it hits the breakpoint inside the Notification service extension, although without mutable-content push is being displayed, also Notification content extension is working fine. I did not modified the code inside Notification service extension its the default generated by the Xcode. Am I missing something while creating notification service extension or it might be the issue with the device setting. I

launchOptions always nil when launching from a push notification

走远了吗. 提交于 2020-06-12 09:16:20
问题 I'm sending push notifications from a Django app (using django-push-notifications) to an iOS app. The app targets iOS 13 and I'm running it on an iPhone 7 running iOS 13.3.1. I'm debugging in Xcode 11.3.1 I'm trying two different methods to send the notification from the Django side: Method 1: devices.send_message(message={"title" : title, "body" : message}, thread_id="events", extra={"foo": "bar"}) Method 2: devices.send_message("[will be overwritten]", extra={ "aps": { "alert": { "title":

launchOptions always nil when launching from a push notification

坚强是说给别人听的谎言 提交于 2020-06-12 09:14:43
问题 I'm sending push notifications from a Django app (using django-push-notifications) to an iOS app. The app targets iOS 13 and I'm running it on an iPhone 7 running iOS 13.3.1. I'm debugging in Xcode 11.3.1 I'm trying two different methods to send the notification from the Django side: Method 1: devices.send_message(message={"title" : title, "body" : message}, thread_id="events", extra={"foo": "bar"}) Method 2: devices.send_message("[will be overwritten]", extra={ "aps": { "alert": { "title":

Not getting APNS Device token on ios 13

徘徊边缘 提交于 2020-06-10 02:37:29
问题 I have issue related to APNS device token . Before I was using Xcode 10.2 and iOS 12.1. At this moment I used to get the device token in delegate method -(void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken I am registering for APNS like this and it was working fine. UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; center.delegate = self; [center requestAuthorizationWithOptions:

What are the possible reasons to get APNs responses BadDeviceToken or Unregistered?

时光怂恿深爱的人放手 提交于 2020-06-09 11:44:17
问题 When sending notifications to iOS users, for some of them I get response status code 400 (BadDeviceToken) or code 410 (Unregistered). From Apple documentation about "BadDeviceToken": The specified device token was bad. Verify that the request contains a valid token and that the token matches the environment. What is the meaning of "bad"? I know for a fact that the device token was valid at some earlier time. What does a user do to make its device token bad? From documentation about

Unable to set header field “apns-push-type” in Apple Push Notification in javapns

て烟熏妆下的殇ゞ 提交于 2020-06-01 02:36:05
问题 I have a legacy code which send notifications to iOS. public List<NotificationResponse> sendNotifications(Constants.App app, List<String> deviceTokens, String payload, List<String> userId, String sender, String appKey) { List<NotificationResponse> response = new ArrayList<NotificationResponse>(); String keystore = serviceKeyMap.get(app).getApiServiceKey(); String password = serviceKeyMap.get(app).getPassword(); String toUser = StringUtils.EMPTY; Integer appId = NotificationHistoryHelper

Send localized string key in loc-args for iOS Push notifications

拥有回忆 提交于 2020-05-27 04:06:29
问题 My application supports 4 languages & push notifications. When I send push notification to APNS , I am sending loc_key & loc-args . Now I need to send localized strings in loc-args array so that I can translate those on iOS app side when app receives the push notification. But when I send localized strings in loc-args , instead of showing translated string in notification center , it just showed localized key as it is. My string file contains below 2 messages: "WINNER_ALERT"= "Congratulations

Sending notification sound with flutter firebase_messaging plugin

点点圈 提交于 2020-05-16 16:13:28
问题 I am trying to get my application to send a notification to a user which will alert them with their default notification sound. So far, I am using the plugin firebase_messaging with the following code: Message firebaseMessage = Message() ..to = token ..body = body ..title = title; firebaseCloudMessage.send(firebaseMessage); This allows me to send a notification to a selected user and display it on their home screen. The only problem is, it does not play a sound on iOS or give Apple Watch

Is a iOS silent notification received when the app is killed

牧云@^-^@ 提交于 2020-05-15 08:45:05
问题 when sending a background push with "content-available": "1" , to an app that is killed by the user, the application is not launched into the background mode and the application:didReceiveRemoteNotification:fetchCompletionHandler: is not called as the Apple doc say: Use this method to process incoming remote notifications for your app. [...]In addition, if you enabled the remote notifications background mode, the system launches your app (or wakes it from the suspended state) and puts it in

React native local notifications

非 Y 不嫁゛ 提交于 2020-05-13 13:33:12
问题 I am new to React Native and need to implement a functionality where the app needs to send the user a notification every day at a certain time. The data to be shown for each day is stored in a json file on the client side and will not change. The notifications are on a schedule. Given that I was hoping there could be a way to just trigger a notification from the app itself. Does anyone know of a way to achieve this without having to detach the app from expo? I can't use 'react-native-push