I am developing a Cordova(Phonegap) hybrid project for Android and IOS platforms using jquery mobile framework I have tried using javascript version of affectiva but it does not detect camera(I have also installed cordova camera plugin) and i get the call back message camera denied. Any suggestion on how to enable affdex.CameraDetector to recognize device camera? Thanks
Currently the Javascript version of Affectiva's SDK does not work on mobile devices. This should change with a future release.
Related
Currently, I am developing an Ionic2 app that should have an ability to connect automatically to paired bluetooth devices in range while beeing closed/killed in order to collect specific data.
Using this plugin https://github.com/Red-Folder/bgs-core, I am creating a background service for android.
Since most of the main app logic written in JS, I would like to know whether it is possible to call functionality written in JavaScript from cordova plugin (in case of Android from Java) while the application is closed. If yes, how can I do it?
As an alternative, are there other cordova plugins that support background execution while an app is killed?
I have found similar questions, however, none of them contains a sufficient solution:
run javascript in background service on android phonegap
How to run cordova plugin in Android background service?
I have a hybrid mobile app developed with IBM MobileFirst Platform v7.1 with Dojo mobile. After upgrading to iOS 10.3 the app crashes every time when a user scrolls. I believe the problem is related to dojo Scrollable View. Crash report says "WebCore: WebCore::StyleRuleKeyframes::findKeyframeIndex(WTF::String const&) const + 80". Do you have any ideas what can be the reason of this crash or what I can try to do in order to identify and fix this problem? The app works normally on other iOS versions and on Android as well.
It is clear with this part now (see answer below). Now the question is if '0' is the same as '0%', why there was such a code at the first place?
The problem was with deleteRule function inside mobile-ui-layer.js dojo file.
This does not work on iOS 10.3:
c.deleteRule(m("webkit") ? "from" : 0);
This works:
c.deleteRule("from");
Can you create mobile apps with Cocos2d-JS for android? I am trying to create an app for mobile android devices but I want to know if i can use that to create the app.
If you plan to develop a game for android, cocos2d-js is the right place for doing that. However, if you plan to develop a normal application, you should rather have a look at PhoneGap or Apache Cordova.
I'm trying to build a video calling app using sinch and ionic framework. The video call works fineon my localhost browser, but when I deploy the app to my iphone it throwing an error 'Error: SinchClient can't be started with calling capability. Browser not supported.' I'm new to Sinch. Please help
The reason its not working is that WebView/Safari does not have WebRTC to make it work in ionic you need to use the Native libraries and build a JS bridge, if I remember correct ionic is a ui framwork on top of cordova so its a cordova plugin that needs to be built.
My cordova app uses device.uuid after I installed the device plugin, I still cannot use that property and my app hangs up on the line where I use device.uuid.
Since iOS7 you can no longer use the device.uuid Apple made impossible to track devices. You will have to use either the advertising id, vendor ID or create your own unique ID.
Just to add on this, from the developers site of PhoneGap
The uuid for iOS is not unique for a device, but is unique per
application per install. This will change if you delete the app and
re-install, and possibly also when you upgrade your iOS version, or
even upgrade your app per version (as we've seen in iOS 5.1). Not a
reliable value.
Looks like PhoneGap/Cordova is using identifierForVendor which kan sometimes return nil and you will have to wait some time before calling it again. Apparently this is not implemented correctly in the cordova and causes the hang in your app.
On iOS 7 apple removed the uniqueIdentifier, the device.uuid is phonegap specific and it isn't using uniqueIdentifier internally, so you can still use it.
To use device.uuid on phonegap 3.X.X you have to add the device plugin first like this:
cordova plugin add org.apache.cordova.device
It works because I've just tested it (on cordova 3.5.0). If you installed the plugin and it was hanging your app maybe there was some bug with your phonegap version or the plugin wasn't installed correctly.
The problem with the device.uuid is that is isn't the real device uuid, from phonegap doc
iOS Quirk
The uuid on iOS is not unique to a device, but varies for each
application, for each installation. It changes if you delete and
re-install the app, and possibly also when you upgrade iOS, or even
upgrade the app per version (apparent in iOS 5.1). The uuid is not a
reliable value.
The device.uuid isn't using identifierForVendor either, it's just a random identifier persisted on the device, but if you want to get the real identifierForVendor I've created a plugin to get it.
https://github.com/jcesarmobile/IDFVPlugin