问题
We have two different application but both required same push notification from Google Cloud Messages and i have use only one sender id (Project No of Enable one of Google Console )in both app .
Do this will create any issue because i am getting two push for same message in my one of the application.
回答1:
Simply restrict your notification by package name:
Sender sender = new Sender(KEY);
GCMessage msg = new GCMessage.Builder().
restrictedPackageName(GC_PACKAGE_NAME).build();
来源:https://stackoverflow.com/questions/26757064/can-i-use-one-gcm-project-number-in-two-different-app-for-receive-push-of-gcm