[英]Uncaught ReferenceError: WL is not defined in MobileFirst Migrated app
[英]ReferenceError: cordova is not defined in MobileFirst
我正在使用PubNub開發聊天應用程序推送通知。 根據我的指示,我在Mobilefirst項目中使用了pushnotification.js文件
https://www.pubnub.com/blog/2014-12-18-sending-android-push-notifications-via-gcm-javascript-using-phonegap/
但是我收到“ ReferenceError:cordova未定義”。 我該如何在MobileFirst Project中解決此問題?
請建議
您根本不需要解釋(!)設置步驟。 對於這樣的問題,我不確定您實際上在尋求哪種支持。
我可以建議您做的是不要為此使用混合應用程序。 相反,假設您使用的是MobileFirst Platform Foundation 7.1,則可以使用“純” Cordova應用程序類型(而不是MobileFirst Studio中的“混合”)。 使用此應用程序類型,您將能夠更輕松地遵循該頁面中提供的說明。
這是因為Hybrid應用程序不支持Plug-man來安裝Cordova插件,因此很難正常工作。
因此,請繼續並首先遵循本教程: https : //developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-1/foundation/hello-world/integrating-mfpf-sdk-in-cordova-applications/
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.