简体   繁体   中英

Android push notification via GCM and Urban Airship

I have implemented and app starting from google gcm client example. I get an regId, that seem alright, after that when I try to send a push with Urban Airship I put my regId in the APID field, but it appear an error: invalid APID.

Maybe should I use the urban airship example in android to get the apid?

i think that APID and regID its the same thing. Am I right?

   PushManager.shared().setIntentReceiver(PushNotificationPluginIntentReceiver.class);
            String apid = PushManager.shared().getAPID();
            log.info("My Application onCreate - App APID: " + apid);
        }

Using this piece of code get the client app id and It will be used for Test push

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM