简体   繁体   中英

Cordova - Multiple Push Notification Services

Is it possible to register multiple push notification services in one cordova application? Say I want to use both Urban Airship and Pushwoosh.

Urban Airship usually can coexist with other push providers. The library will only try to handle pushes from it's sender ID. I would recommend using 2 different gcm sender/projects, 1 for PushWoosh and 1 for Urban Airship.

Looks like PushWoosh is closed source, but after digging into the AAR it appear they are using instance IDs and the GCMPushReceiver provided by Google Play Services. That is a good sign as using the old GCM registration methods can cause conflicts with instance IDs. The only thing I am unable to verify is if PushWoosh will ignore pushes from other sender IDs or if they will try to handle Urban Airship push notifications. Most of Urban Airship's keys are prefixed with com.urbanairship so it will probably not be an issue even if they tried.

I think it should be fine :).

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