push-notification

No sound when sending push notifications through Parse

做~自己de王妃 提交于 2020-01-15 10:13:11
问题 for whatever reason I cannot get my push notifications to make the default sound nor update the badge number when I receive them. Here's my code below. Do you think it's something wrong with my code? Or is there a configuration issue that I'm not aware of? Thanks for your help! PFQuery *pushQuery = [PFInstallation query]; [pushQuery whereKey:@"installationUser" containedIn:recipients]; // Send push notification to our query PFPush *push = [[PFPush alloc] init]; [push setQuery:pushQuery];

No sound when sending push notifications through Parse

强颜欢笑 提交于 2020-01-15 10:12:29
问题 for whatever reason I cannot get my push notifications to make the default sound nor update the badge number when I receive them. Here's my code below. Do you think it's something wrong with my code? Or is there a configuration issue that I'm not aware of? Thanks for your help! PFQuery *pushQuery = [PFInstallation query]; [pushQuery whereKey:@"installationUser" containedIn:recipients]; // Send push notification to our query PFPush *push = [[PFPush alloc] init]; [push setQuery:pushQuery];

How to make it work NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID);

不打扰是莪最后的温柔 提交于 2020-01-15 09:38:05
问题 NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, NOTIFICATION_CHANNEL_ID); was showing the error: Builder (Context) in Builder cannot be applied to (FirebaseMessagingService, java.lang.String) Help me to solve this problem. I tried Notification.Builder notificationBuilder = new Notification.Builder(this, NOTIFICATION_CHANNEL_ID); and NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this); But it was not working in both API 23

How to create local push notification using react-native-push-notification

半城伤御伤魂 提交于 2020-01-15 07:38:27
问题 I am developing an android app using react-native, i want to use local push notification for that, like whenever i click on button, push notification should create. how can i do this? someone please suggest me something. 回答1: You could try this with react-native-push-notification import PushNotification from 'react-native-push-notification'; scheduleNotfication() { PushNotification.localNotificationSchedule({ message: "My Notification Message", // message date: new Date(Date.now() + (60 *

Background fetch execution time with iOS 10 UserNotifications without user interaction

烈酒焚心 提交于 2020-01-15 05:55:07
问题 In the Push Notification API before iOS 10, I could easily run a background job triggered by a Push Notification being received. Just received -- the user didn't have to interact with it at all. Now it seems in order for my same background jobs to be carried out with this new framework the user must interact with the notification somehow. Is there a way with this new framework to just run a background job when a certain push is just received by the client device, but not interacted with by

Which API key for android GCM server

孤街醉人 提交于 2020-01-15 05:34:05
问题 I am confused a little for which API key should I use for the GCM server. In the documentation it says use android api key, which did not work with me and always gives unauthorized. http://developer.android.com/google/gcm/gs.html I used server key which worked for me, but I am wondering why the documentation says that? Am I doing something wrong? I saw this post also, but I could not get an answer. GCM Push Server side, which API Key to use? Thanks for advance. 回答1: Server Key is the one that

Android Gcm Not working with ROR

半世苍凉 提交于 2020-01-15 03:51:26
问题 I read basic example for implementing google gcm. I developed small client side android application which successfully gives me registration id from gcm server.. now on server side I am using Ruby on rails hence we use this gem for implementing server side of gcm https://github.com/dondeng/gcm_on_rails. I pass my registration id to to my server. I successfully ran these commands device = Gcm::Device.create(:registration_id => "XXXXXXXXXXXXXXXXXXXXXX") notification = Gcm::Notification.new

Push notifications on emulator working, but not on real device

倾然丶 夕夏残阳落幕 提交于 2020-01-15 03:44:27
问题 I got a working example of a third party server to send push notifications to the device which is perfectly working in the Android emulators I use. As soon as I try to use it on my real device (Samsung Galaxy S) I don't receive my notifications anymore, even tough I reregister the device at the google server (as I use the same gmail account). I basically have no clue where to start looking as Logcat is not giving me any interesting information about it. The code is working in the emulator

Getting null as the token on getToken() in cordova-plugin-fcm

时光怂恿深爱的人放手 提交于 2020-01-15 02:55:28
问题 I want to implement push notification using ionic 3 and firebase. I am using cordova-plugin-fcm but I am getting the token as null on getToken() . I have already set up the project on firebase and downloaded the google services. When I used this plugin a year back everything was working perfectly. Now when I am using it on my new project I am getting null as the token. Is the getToken() deprecated? I have installed the fcm plugin as well as @ionic-native/fcm . According to the new

How to send a push notification

不羁岁月 提交于 2020-01-14 19:16:17
问题 What is a service that i can use to send a notification to an Android device? I want it so i can send it in real time! 回答1: You have to use GCM - Google cloud messaging for sending push notifications to Device. Refer to demo application given in android developer site. GCM Demo Application And main link is - Google Cloud Messaging for Android 回答2: I think the best way to send notifications in Android is FCM(Firebase cloud message ), and this service is also from google which is a replacement