IBM Worklight - Push Notifications feature does not work in Android emulator

江枫思渺然 提交于 2019-11-29 08:47:55

For Push Notifications to work in the Android Emulator, you need to make sure to install in the Android SDK Manager:

Note: Push Notifications in the Android Emulator work only in an AVD running Android OS 4.x.x.

Next, you need to set-up GCM:
These steps are relevant whether you're using a device or emulator.

  1. Create a Gmail email address
  2. Go to GCM's web page: http://developer.android.com/google/gcm/gs.html
  3. Click on "Google APIs Console page"
  4. If you have never done step 3 above, you will be asked to create a project, this project will have an ID. This ID is the senderId value you place in application-descriptor.xml
  5. Click on "Create new Server key..." / "Create new Android key"
  6. The generated key is the API key value you place in application-descriptor.xml

Now you need to:

  1. Build and deploy the application
  2. Deploy the adapter
  3. Run the app on a device or emulator
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!