I have a general question about permissions and plugins. I have not had any success getting plugins to work in my build… I also noticed that when using Cordova 9.1.0 permissions were set that arent when using 10.1.1.
Lets start with permission first:
Building my app in 9.1.0 allowed me to create an HTML page, hit my server to get my IP address and start the app.
Building with 10.1.1 - I started getting errors locally for https & http POST requests while testing locally. I added the following change to config.xml to over come this.
<preference name="Scheme" value="http" />
I then started noticing ERR_CACHE_MISS errors whenever I build with 10.1.0. It seems all “INTERNET” related permission were not provided in the manifest. I had to manually include these.
<platform name="android"> <config-file target="AndroidManifest.xml" mode="merge" parent="/manifest"> <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.NETWORK_ACCESS" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.VIBRATE" /> <uses-permission android:name="android.permission.SMS" /> </config-file> </platform>
That being said… I can’t even get the vibrate plugin to work. It works when testing on a tablet, but hasn’t work on a single phone I have tested. (Robin, and BlackBerry)
What am I missing?