更新时间:2023-01-01 09:39:22
有关推送通知在Android模拟器,您需要,以确保安装在Android SDK管理器:
For Push Notifications to work in the Android Emulator, you need to make sure to install in the Android SDK Manager:
在谷歌API插件对应您使用的是为您的项目的API级别(在工作灯必须是API 8级或以上)。该AVD创建应该使用谷歌API
The Google APIs add-on corresponding to the API Level you're using for your project (in Worklight it must be API Level 8 or above). The AVD you create should use this Google API
的谷歌云消息传递为Android库(可在额外类别)
注意:推入Android模拟器工作的仅在AVD运行Android OS 4.xx的通知
Note: Push Notifications in the Android Emulator work only in an AVD running Android OS 4.x.x.
接下来,需要为建立GCM :
这些步骤是有关您是否使用设备或仿真器。的
Next, you need to set-up GCM:
These steps are relevant whether you're using a device or emulator.
senderId
价值,你的应用程序descriptor.xml放置 API密钥
价值,你的应用程序descriptor.xml放置senderId
value you place in application-descriptor.xmlAPI key
value you place in application-descriptor.xml现在你需要:
Now you need to: