简体   繁体   中英

Cordova/Phonegap hybrid android app on blackberry: can't access asset file

I've created a hybrid HTML5 Android app based on Cordova/Phonegap, that i want to deploy on Blackberry using the Android app converter.
My startup html file is located in the assets folder of my Android app. After deploying my app on Blackberry 10 simulator and starting it, i'm getting an application error, saying that the protocol isn't supported.
I changed my url to "asset:///www/index.html" already.

What can i do to fix that?

Thanks, Stephan

I located my problem and solved it:

I was using an older version of Phonegap in conjunction with the now deprecated plugin.xml. I switched to config.xml, using the access origin and content source tag, and I changed my startup url to file:///android_asset/www/index.html, which now works both with Android and Blackberry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM