google-cloud-messaging

Ionic cant get Reg ID for GCM

夙愿已清 提交于 2020-01-17 13:43:02
问题 I read every topic and tried every way. About 2 days and i still didnt get Reg ID. MY Sender ID is right and check every example in real device. Also i tried this one this one this one this one And thoses are just some pages. I almost tried everything and still get just okey message in success handler. Can someone tell me where is my mistake ? var xxx = angular.module('starter', ['ionic', 'ngCordova']) xxx.run(function ($ionicPlatform, $cordovaPush) { $ionicPlatform.ready(function () { if

Ionic cant get Reg ID for GCM

末鹿安然 提交于 2020-01-17 13:42:27
问题 I read every topic and tried every way. About 2 days and i still didnt get Reg ID. MY Sender ID is right and check every example in real device. Also i tried this one this one this one this one And thoses are just some pages. I almost tried everything and still get just okey message in success handler. Can someone tell me where is my mistake ? var xxx = angular.module('starter', ['ionic', 'ngCordova']) xxx.run(function ($ionicPlatform, $cordovaPush) { $ionicPlatform.ready(function () { if

HTTP Post request to GCM server always returning “NotRegistered”

允我心安 提交于 2020-01-17 12:39:31
问题 var options = { method: 'POST', uri: 'https://android.googleapis.com/gcm/send', headers: { 'Content-Type': 'application/json', 'Authorization':'key=VALUE' }, body: JSON.stringify({ "to" : gcmId, "data" : { message: message }, }) } request(options, function (error, response, body) { if(error) console.log(error); console.log("RESPONSE STATUS: " + response.statusCode) console.log("BODY: " + body); }); Am I placing my registration id (gcmId) in the correct place? I seem to always be receiving: {

GCM (Google Cloud Messaging) CCS/XMPP delivery receipt is not bound to the right session

♀尐吖头ヾ 提交于 2020-01-17 12:08:45
问题 Our app servers are running in multi-node cluster with each creating an XMPP connection to the GCM CCS/XMPP server with the same account. In each outgoing message to the Android devices, delivery_receipt_requested flag is enabled. The app servers do receive the delivery receipts but they do not always go to the connection through which the message was sent. It looks like GCM server does not do session binding correctly for delivery receipt. Does anybody have experience on this? 来源: https:/

GCM (Google Cloud Messaging) CCS/XMPP delivery receipt is not bound to the right session

梦想的初衷 提交于 2020-01-17 12:08:29
问题 Our app servers are running in multi-node cluster with each creating an XMPP connection to the GCM CCS/XMPP server with the same account. In each outgoing message to the Android devices, delivery_receipt_requested flag is enabled. The app servers do receive the delivery receipts but they do not always go to the connection through which the message was sent. It looks like GCM server does not do session binding correctly for delivery receipt. Does anybody have experience on this? 来源: https:/

GCM (Google Cloud Messaging) CCS/XMPP delivery receipt is not bound to the right session

允我心安 提交于 2020-01-17 12:08:07
问题 Our app servers are running in multi-node cluster with each creating an XMPP connection to the GCM CCS/XMPP server with the same account. In each outgoing message to the Android devices, delivery_receipt_requested flag is enabled. The app servers do receive the delivery receipts but they do not always go to the connection through which the message was sent. It looks like GCM server does not do session binding correctly for delivery receipt. Does anybody have experience on this? 来源: https:/

Android: java.lang.IllegalStateException: No receiver allowed to receive com.google.android.c2dm.permission.SEND

孤街醉人 提交于 2020-01-17 11:17:15
问题 Hey guys I am trying to implement GCM to my app. However I keep getting this annoying error for some reason: java.lang.IllegalStateException: No receiver allowed to receive com.google.android.c2dm.permission.SEND Here is my manifest file: <!-- GCM --> <!-- GCM requires Android SDK version 2.2 (API level 8) or above. --> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="com.google

Android: java.lang.IllegalStateException: No receiver allowed to receive com.google.android.c2dm.permission.SEND

老子叫甜甜 提交于 2020-01-17 11:17:04
问题 Hey guys I am trying to implement GCM to my app. However I keep getting this annoying error for some reason: java.lang.IllegalStateException: No receiver allowed to receive com.google.android.c2dm.permission.SEND Here is my manifest file: <!-- GCM --> <!-- GCM requires Android SDK version 2.2 (API level 8) or above. --> <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="21" /> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="com.google

Invalid Podfile for iOS GCM Example

ぐ巨炮叔叔 提交于 2020-01-16 19:10:25
问题 I am trying to install the GCM Example Xcode project, following the instructions on the Google developers page https://developers.google.com/cloud-messaging/ios/start but failing at step 1 with this message: [!] Invalid `Podfile` file: [!] The specification of `link_with` in the Podfile is now unsupported, please use target blocks instead.. The full transcript goes like this: $ pod try Google --no-repo-update Trying Google 1: Samples/admob/AdMobExample.xcodeproj 2: Samples/analytics

Start intent service and close app

淺唱寂寞╮ 提交于 2020-01-16 04:11:06
问题 I'm implementing GCM in my app and I start the RegistrationIntentService in the main activity. What happens if I close the app before the intent finishes? The service takes a few seconds and I need the registration finishes despite the user has closed the app. This work this way or I have to do something more? Thanks! 回答1: Unless the system suddenly kills the application process, the intent will finish, because as a user you don't have direct control over when the app is actually closed