我有一个带有条码阅读器的Phonegap Android应用程序,我使用beta版迁移到了Crosswalk,现在我的警告对话框显示奇怪的方块而不是拉丁字符,如下图所示。
相反,应该显示以下文本,这在纯Phonegap版本上确实如此:
![screenshot](https://istack.dev59.com/DUDuy.webp)
Alert
We got a barcode
Result: 6927xxxxxxxxxxx
Format: EAN_13
Cancelled: false
规格:
- 中国香港
- LG G3 Android 4.4
- ARM
- Crosswalk Beta 10
我怀疑这是某种编码/语言问题,因为我已将中文设置为手机系统语言。
请注意,我没有屏蔽文本,它们也不是中文字符。 应该显示的文本在我的代码块中。
如果需要更多信息,请评论!
navigator.notification.alert(message, alertCallback, [title], [buttonName])
。http://docs.phonegap.com/en/edge/cordova_notification_notification.md.html - Danilo Oliveira