gcm policy or st change kill app

29 views
Skip to first unread message

おとめ座ひなたぼっこ

unread,
May 15, 2016, 12:05:08 PM5/15/16
to android-gcm
week ago until mow app using gcm and google sync cloud started to force stop an all android clients
pls check?

おとめ座ひなたぼっこ

unread,
May 16, 2016, 10:49:35 AM5/16/16
to android-gcm
The last time, clients successfully receive registration ID is May 11

Diego Giorgini

unread,
May 16, 2016, 12:41:11 PM5/16/16
to android-gcm
Hello,

could you explain more what it the issue you are experiencing?

Thanks
- Diego

--
You received this message because you are subscribed to the Google Groups "android-gcm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-gcm...@googlegroups.com.
To post to this group, send email to andro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-gcm/207d5c90-77d2-438b-a820-844c98a1c4b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

おとめ座ひなたぼっこ

unread,
May 17, 2016, 11:16:22 AM5/17/16
to android-gcm
a service to register GCM ID failed and forced stop, so as the app
starting 11 May 
 
 if (checkPlayServices()) {
            gcm = GoogleCloudMessaging.getInstance(this);
            regid = getRegistrationId(context);

            if (regid.isEmpty()) {
                registerInBackground();
            }
        } else {
            Log.i(TAG, "No valid Google Play Services APK found.");
        }

Diego Giorgini

unread,
May 17, 2016, 1:08:57 PM5/17/16
to android-gcm
GoogleCloudMessaging.getInstance(this).register(...)
Can fail with IOException. In that case your responsibility to catch the exception and retry later.

Also please note that GoogleCloudMessaging.getInstance(this).register(...) is deprecated and you should update to:
InstanceID.getInstance(this).getToken(...)



おとめ座ひなたぼっこ

unread,
May 18, 2016, 7:56:00 AM5/18/16
to android-gcm
Thank. So tied of deprecated, c2dm->gmc->instance id ...

おとめ座ひなたぼっこ

unread,
Oct 13, 2016, 1:15:05 PM10/13/16
to android-gcm
The above is only sample code, in my production code I have catched IOException but app still crash. Only tunr off network recover the running.
This only happen with KK client, not Loillipop
This is the production code, and it is failed since May 2016

  String s ="SyncAdapter \n";
           if (regid.isEmpty()||(!b) )
           {   String[] a= doRegister(context);

static String[] doRegister(Context context){
        String regid="";
         
          String msg="";
                            GoogleCloudMessaging gcm;
                            SharedPreferences prefs = getGcmPreferences(context);
                            SharedPreferences.Editor editor = prefs.edit();
                            int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);
                          if (resultCode == ConnectionResult.SUCCESS) {
                           
            try {
               
                    gcm = GoogleCloudMessaging.getInstance(context/*.getApplicationContext()*/);
               
              //  android.os.Debug.waitForDebugger();
               
              
                regid = gcm.register(SENDER_ID);

--------------------------------------------------------

   } catch (IOException ex) {
                msg = ex.getMessage();
-----------------------------------------------------

Massimiliano

unread,
May 5, 2024, 5:31:38 PMMay 5
to android-gcm
MT103/202 DIRECT WIRE TRANSFER
PAYPAL TRANSFER
CASHAPP TRANSFER
ZELLE TRANSFER
LOAN DEAL
TRANSFER WISE
WESTERN UNION TRANSFER
BITCOIN FLASHING
BANK ACCOUNT LOADING/FLASHING
IBAN TO IBAN TRANSFER
MONEYGRAM TRANSFER
IPIP/DTC
SLBC PROVIDER
CREDIT CARD TOP UP
DUMPS/ PINS
SEPA TRANSFER
WIRE TRANSFER
BITCOIN TOP UP
GLOBALPAY INC US
SKRILL USA
UNIONPAY RECEIVER

Thanks.


NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT.

DM ME ON WHATSAPP
+44 7529 555638
Reply all
Reply to author
Forward
0 new messages