google-cloud-messaging

How do I send extra data through an urbanairship push notification

血红的双手。 提交于 2020-01-05 04:41:05
问题 So I need to send a push notification to a user's device. Then when the user clicks on the notification, I need my app to take a specific action. I want to include the parameter for the action in the notification. But I don't want the user to see the parameter; they should just see the message. Doing some research, I found the following on the urban airship website { "audience": "all", "notification": { "alert": "Extras example", "android": { "extra": { "url": "http://example.com", "story_id"

handle different types of notifications in android

僤鯓⒐⒋嵵緔 提交于 2020-01-05 03:48:20
问题 I have 3 types of notifications in android.Audio/Video call and msg. How to differentiate based on notification type and open different activity on different notification. THis is hoW I open activity on click of notification. private void sendNotification(long when,String msg) { String notificationContent ="Notification Content Click Here to go more details"; String notificationTitle ="This is Notification"; //large icon for notification,normally use App icon Bitmap largeIcon = BitmapFactory

How to implement Google Cloud Messaging - Topic Messaging in Chrome?

為{幸葍}努か 提交于 2020-01-05 01:32:30
问题 In the Google Cloud Messaging for Chrome documentation there are no information about Topic Messaging feature. https://developers.google.com/cloud-messaging/chrome/client Is not yet available? Here is the GCM reference docs without subscribe method https://developer.chrome.com/apps/gcm And here is the Android and iOS reference with the GcmPubSub class that provides subscribe/unsubscribe methods: https://developers.google.com/android/reference/com/google/android/gms/gcm/GcmPubSub https:/

How to implement Google Cloud Messaging - Topic Messaging in Chrome?

末鹿安然 提交于 2020-01-05 01:31:09
问题 In the Google Cloud Messaging for Chrome documentation there are no information about Topic Messaging feature. https://developers.google.com/cloud-messaging/chrome/client Is not yet available? Here is the GCM reference docs without subscribe method https://developer.chrome.com/apps/gcm And here is the Android and iOS reference with the GcmPubSub class that provides subscribe/unsubscribe methods: https://developers.google.com/android/reference/com/google/android/gms/gcm/GcmPubSub https:/

Swift iOS don't recognize GCM library imports?

时光总嘲笑我的痴心妄想 提交于 2020-01-04 18:14:46
问题 I downloaded GCM sdk through cocoapods successfully and everything is fine. But Swift don't recognize GCM library imports this image in Xcode: and this Podfile : how to fix this problem. thanks. 回答1: Updated: I recommend Stefan Scoarta's answer to add use_frameworks! to your podfile if you're targeting iOS 8 or higher and can use frameworks. Original answer: Make sure that you've configured a bridging header as described in Apple's Using Swift with Cocoa and Objective-C document. To import a

Add SHA-1 from production certificate for GCM/FCM

ε祈祈猫儿з 提交于 2020-01-04 07:35:08
问题 I have an app that is using FCM. I've added package to the FCM and it said "Debug signing certificate SHA-1 (optional)", so everything works as expected. Now I'm preparing it for the release and wonder do I need to change this SHA-1 certificate to value from the release certificate or it's not required and for release I should leave everything as it is? 回答1: Yes, you must add SHA-1 of release certificate. you can add SHA-from settings button and then add fingerprint: you can have both SHA-1

Android GCM Server error: Device Subscription Expired

天大地大妈咪最大 提交于 2020-01-04 06:14:19
问题 On sending notifications to an Android device via GCM I am getting the following response: Device Subscription Expired: PushSharp.Android.GcmPushService -> AppId Due to this issue I experience random issues on the phone. For example, the app receives extra call backs on the receiver. Can someone please provide more details about this error? When does it occur? Is it similar to device id registration? What needs to be done to handle this situation? Thanks! 回答1: If you look at the code of

Android GCM Server error: Device Subscription Expired

限于喜欢 提交于 2020-01-04 06:14:11
问题 On sending notifications to an Android device via GCM I am getting the following response: Device Subscription Expired: PushSharp.Android.GcmPushService -> AppId Due to this issue I experience random issues on the phone. For example, the app receives extra call backs on the receiver. Can someone please provide more details about this error? When does it occur? Is it similar to device id registration? What needs to be done to handle this situation? Thanks! 回答1: If you look at the code of

Are push notifications delivered to android phones after its disabled in settings?

馋奶兔 提交于 2020-01-04 06:09:04
问题 In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the device? If it is delivered to the device will the notification be passed onto the app? or does the OS block it? Is the device_token invalidated? I am assuming that when we disable notifications, android os communicates these settings to the fcm/gcm server. 回答1: In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the

Are push notifications delivered to android phones after its disabled in settings?

試著忘記壹切 提交于 2020-01-04 06:08:53
问题 In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the device? If it is delivered to the device will the notification be passed onto the app? or does the OS block it? Is the device_token invalidated? I am assuming that when we disable notifications, android os communicates these settings to the fcm/gcm server. 回答1: In Android, if we disable app notifications using the OS settings, will fcm/gcm still deliver the notification to the