spiceiorew.blogg.se

Php send push notification to gcm to iso
Php send push notification to gcm to iso







php send push notification to gcm to iso

Public static final int PUSH_TYPE_CHATROOM = 1 Public static final String PUSH_NOTIFICATION = "pushNotification" Public static final String REGISTRATION_COMPLETE = "registrationComplete" Public static final String SENT_TOKEN_TO_SERVER = "sentTokenToServer" Public static final String TOPIC_GLOBAL = "global" global topic to receive app wide push notifications Public static boolean appendNotificationMessages = true or multi line text in push notification tray flag to identify whether to show single line This class contains app configuration information related to gcm. Under app package, create a class named Config.java. Move your main activity class into activity package.Ĩ.

php send push notification to gcm to iso

Now under your project’s main package, create four packages named activity, app, gcm and helper. NOTE: Do not place your application dependencies here they belong Top-level build file where you can add configuration options common to all sub-projects/modules.Ĭlasspath ':gradle:2.0.0-alpha6'Ĭlasspath ':google-services:1.5.0-beta2' One more important change is, open adle located in root directory of the project and addĬlasspath ‘:google-services:1.5.0-beta2’Ĭlasspath ‘:gradle:2.0.0-alpha6’ in dependency and clean the project from Build => Clean Project. ProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'Ĭompile fileTree(dir: 'libs', include: )Ĭompile ':appcompat-v7:23.+'Ĭompile ':design:23.+'Ĭompile ":play-services:8.3.0"Ħ. Open adle located under app level and do the below changes.Īdd apply plugin: ‘-services’ at the top.Īdd :play-services:8.3.0 dependency apply plugin: ''Īpply plugin: '-services'ĬompileSdkVersion 'Google Inc.:Google APIs:23' Otherwise you won’t be successful in implementing the gcm.ĥ. Make sure that you are placing this json file correctly under app folder. Add the downloaded google-services.json to your project’s app folder.









Php send push notification to gcm to iso