push-notification

Web Push Notification: How to use Web Push PHP Library?

。_饼干妹妹 提交于 2020-01-22 05:50:21
问题 I Want to add Web Notification to my website. I searched on Google and found some tutorials about it. As described in these tutorials I manage to show subscription box to the visitors and I can store their data also. Main.js 'use strict'; const applicationServerPublicKey = 'BBw_opB12mBhg66Dc94m7pOlTTHb5oqFAafbhN-BNeazWk8woAcSeHdgbmQaroCYssUkqFfoHqEJyCKw'; const pushButton = document.querySelector('.js-push-btn'); let isSubscribed = false; let swRegistration = null; function urlB64ToUint8Array

How to implement XMPP to send push notifications

若如初见. 提交于 2020-01-22 04:54:50
问题 I would like to use XMPP so that my application will send out updates to an android phone (1.5 and higher). I pretty much want to use XMPP to send push notifications to the phone. How would i go about achieving this. At the moment my web application is running on apache tomact with a number of servlets so the android phone can access information, but I'm finding it difficult understanding how I could implement XMPP so that I can push information from the server to the client (android phone).

iOS Application crashes when trying to register the device to IBM Mobile First Push service on Bluemix

拟墨画扇 提交于 2020-01-22 03:44:26
问题 I have an iOS 9 application running on an iPad mini 4 (iOS 9.0.2). It crashes when trying to register the device to my IMFPush service instance on Bluemix. Here is the code that performs the registration in my App delegate: func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Push notifications let notificationTypes: UIUserNotificationType = [UIUserNotificationType.Badge, UIUserNotificationType.Alert,

How to load Glide cached image in NotificationCompat.Builder.setLargeIcon()?

谁说我不能喝 提交于 2020-01-21 11:48:09
问题 Like this image I am trying to set notification large icon as user profile thumbnail like whatsapp or other chatting apps I have tried Glide.with(context) .asBitmap() .load(messageNotification.getLargeIcon()) .into(new SimpleTarget<Bitmap>() { @Override public void onResourceReady(Bitmap resource, Transition<? super Bitmap> transition) { builder.setLargeIcon(resource); } }); but it is not working.. Any Help? 回答1: If you set the large icon using glide..the you should also notify the

How to load Glide cached image in NotificationCompat.Builder.setLargeIcon()?

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-21 11:47:07
问题 Like this image I am trying to set notification large icon as user profile thumbnail like whatsapp or other chatting apps I have tried Glide.with(context) .asBitmap() .load(messageNotification.getLargeIcon()) .into(new SimpleTarget<Bitmap>() { @Override public void onResourceReady(Bitmap resource, Transition<? super Bitmap> transition) { builder.setLargeIcon(resource); } }); but it is not working.. Any Help? 回答1: If you set the large icon using glide..the you should also notify the

Android notification icon issue

我们两清 提交于 2020-01-21 08:59:07
问题 I have a strange issue. I have two way to send notifications in my Android app; one from the Android service and the other through FCM. The scenarios are as follows: Regardless of whether the app is running or not, the icon of the notification sent from the Android service appears correctly. When the app is running, the notification icon appears still appears correctly if I send the notification via FCM. But if the app isn't running and I send the notification via FCM, a white square is

Android notification icon issue

强颜欢笑 提交于 2020-01-21 08:58:46
问题 I have a strange issue. I have two way to send notifications in my Android app; one from the Android service and the other through FCM. The scenarios are as follows: Regardless of whether the app is running or not, the icon of the notification sent from the Android service appears correctly. When the app is running, the notification icon appears still appears correctly if I send the notification via FCM. But if the app isn't running and I send the notification via FCM, a white square is

Can we push only data message from Firebase Notification console [duplicate]

南笙酒味 提交于 2020-01-20 08:28:10
问题 This question already has answers here : Unable to send data message using firebase console (4 answers) Closed 3 years ago . I have implemented FCM successfully in my project. Is it possible to push only data message from Firebase console. 回答1: Unfortunately, no. When sending messages through the Firebase Console, it will be treated as a notification payload and will be handled as such. You can however, include custom key-value pairs in the Advance Options section in the console, this will be

Can we push only data message from Firebase Notification console [duplicate]

蹲街弑〆低调 提交于 2020-01-20 08:27:05
问题 This question already has answers here : Unable to send data message using firebase console (4 answers) Closed 3 years ago . I have implemented FCM successfully in my project. Is it possible to push only data message from Firebase console. 回答1: Unfortunately, no. When sending messages through the Firebase Console, it will be treated as a notification payload and will be handled as such. You can however, include custom key-value pairs in the Advance Options section in the console, this will be

Local Notification Not Firing With Background Fetch

本秂侑毒 提交于 2020-01-17 14:52:10
问题 Can someone please take a look at the following code and tell me why the local notification isn't firing. Im running the app in XCode and using the debug option to simulate a background fetch but the local notification doesn't fire. - (void)application:(UIApplication *)application performFetchWithCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler { NSLog(@"performFetchWithCompletionHandler"); UILocalNotification *localNotif = [[UILocalNotification alloc] init]; if