I am using Blackberry10 Simulator (BB10_2_0x.1521) and Couldn't connect to internet through simulator. I am using web services in my blackberry 10 application. Because of this issue I am not able to view my application in simulator even though it is getting installed successfully.
I referred some forums and tried changing from NAT to BRIDGED mode. This didn't help. I am working under a proxy internet connection. So I tried this thing... VM Player-> file -> Player Preferences -> Connection settings -> Manual Proxy Settings( here i have given the proxy details) . But of no use.
As a next option I tried using MDS services. As in forum they have mentioned to start MDS Connection Services before running the simulator. This also din help me.
I am using windows 7 system.
Please help me...
If you want to use any web service in your application you have to add these lines in your 'config.xml' file.Otherwise you wont get permission to access those sites.Hope this helps :)
<access uri="http://www.address1.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>
<access uri="http://www.address2.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.invoke" required="true" version="1.0.0"/>
</access>
Try setting it to Custom(VMNet#) and setting the custom one to NAT. That should allow you access.
I work in a proxy environment as well, and that's what I have to do. You may still have to enter proxy settings by the way.
Related
I have installed charles proxy Certificate on Android Samsung tabA7.
Followed the steps:https://community.tealiumiq.com/t5/Tealium-for-Android/Setting-up-Charles-to-Proxy-your-Android-Device/ta-p/5121
When i launch the app on device, Charles Web proxy display the API responses as Unknown Kindly let me know how to resolve this issue and view the actual response.
If you have created the app you need to modify the manifest of Android app otherwise it won't work as Applications don't allow it by default.
Refer Charles documentation: https://www.charlesproxy.com/documentation/using-charles/ssl-certificates/
Android:
As of Android N, you need to add configuration to your app in order to have it trust the SSL certificates generated by Charles SSL Proxying. This means that you can only use SSL Proxying with apps that you control.
Add a file res/xml/network_security_config.xml to your app:
<network-security-config>
<debug-overrides>
<trust-anchors>
<!-- Trust user added CAs while debuggable only -->
<certificates src="user" />
</trust-anchors>
</debug-overrides>
</network-security-config>
Then add a reference to this file in your app's manifest, as follows:
<?xml version="1.0" encoding="utf-8"?>
<manifest ... >
<application android:networkSecurityConfig="#xml/network_security_config" ... >
...
</application>
</manifest>
gapi.client.load not working on iPhone device .
Its loading on android device , firefox , and safari .
Im using ionic with google app engine endpoints.
Please any help .
Solved ,
I added the below tags to config.xml , or you may add under the platform itself
<access origin="*" />
<allow-intent href="geo:*" />
<allow-navigation href="*" />
Thanks
I developed an app with Ionic v1 and tested with "ionic serve" and "ionic run android" and works fine. It makes all $http requests to an external API (that allows CORS) and I recive the data well.
The probleme comes when I try to test the app in real mode. I added the app to Ionic view to test in Android mobile device and I see that the requests to the API are not performed (because I not see any data printed in tha app).
For what reasons can be? I need to perform extra configs in my API server? I need to perform some special configs to Ionic app?
PD: I installed cordova withelist plugin and added this lines to config.xml file:
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="*" />
You verify if Cordova CLI has generated these Android permissions entries in your AndroidManifest.xml?
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
I hope that helps.
Greetings.
I am developing an Audio Application for iOS using PhoneGap and the audio stops when iPhone's screen is locked. I have read that you need to define in ".plist" file what processes should be run in background. However I am unable to find any plist file on my windows machine.
I am building PhoneGap for iOS remotely using latest version.
go to Resource folder on your phoneGap project .Resource ->your apps name-info.Plist file will be there.
on the config.xml file of phonegap project you can add:
<config-file target="config.xml" parent="/*">
<feature name="AllowBackgroundAudio">
<param name="ios-package" value="AllowBackgroundAudio" onload="true" />
<param name="onload" value="true" />
</feature>
</config-file>
Or you can try using the cordova-allow-background-audio plugin.
How to retrieve Blackberry OS version in Blackberrywebworks using javascript?
Just use blackberry.system.softwareVersion and don't forget to add <feature id="blackberry.system" /> to your config.xml
You can find full docs here
https://developer.blackberry.com/html5/apis/blackberry.system.html#.softwareVersion