我正在尝试使用Pushwoosh推送通知phonegap构建插件,但registerDevice回调永远不会在我的Android设备上触发,但initPushwoosh功能会触发,因为我在下面的代码中看到来自警报("initPushwoosh")的警报
下面是我的config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "com.phonegap.hello-world"
version = "1.0.0">
<name>Push notification</name>
<description>
Camera example app.
</description>
<author href="http://phonegap.com" email="support@phonegap.com">
PhoneGap Team
</author>
<preference name="phonegap-version" value="3.3.0" />
<gap:plugin name="org.apache.cordova.core.camera" />
<plugin name="PushNotification"
value="com.pushwoosh.plugin.pushnotifications.PushNotifications" onload="true"/>
<access origin="*.pushwoosh.com" />
</widget>
Run Code Online (Sandbox Code Playgroud)
这是我的index.js,我只是将项目ID和appid更改为XXXX,这样我就不会错误地透露太多.
var app = {
// Application Constructor
initialize: function() {
this.bindEvents();
},
// Bind Event Listeners
//
// Bind any events that are required on startup. Common events …Run Code Online (Sandbox Code Playgroud) 我刚刚应用了更新 5,现在收到 XML 错误:
“错误”,“ajp-nio-127.0.0.1-8020-exec-10”,“10/13/22”,“11:28:42”,“Medlists3”,“coldfusion.runtime.CFPage.XmlSearch(Lcoldfusion) /xml/XmlNodeList;Ljava/lang/String;)Ljava/lang/Object;
https://helpx.adobe.com/coldfusion/kb/coldfusion-2021-update-5.html 说
XML 的变化
如果 XML 路径包含正斜杠或反斜杠,则会被阻止。标志 Coldfusion.xml.allowPathCharacters 必须设置为 true 才能允许相同的操作。
但我不知道在哪里进行此更改。