【发布时间】:2013-04-02 04:21:23
【问题描述】:
我正在使用GitHub-GCM Cordova plugin。我的问题是收到推送消息后无法显示。
GCMIntentService:
@Override
protected void onMessage(Context context, Intent intent) {
Log.d(TAG, "onMessage - context: " + context);
Bundle extras = intent.getExtras();
if (extras != null) {
//show alert
}
//...
}
我认为应该是java代码,因为我不知道如何引用html/js..但是AlertDialog Builder不起作用。
【问题讨论】:
标签: cordova push-notification phonegap-plugins cordova-2.0.0