Cordova on WP8 - deviceready not fired - windows-phone-7

I've developed an application with Cordova, it actually works fine on Android and on iOS.
I want to try it on WP 7/8, but when I launched the app, it seems like the device ready event is not fired, so nothing works.
I use Cordova 3.1.0, I read somewhere that it could be cordova that is not loaded in VS2012.
Can someone help me ?

I solved it, the problem was not the deviceready event but the database initialisation.
Cordova database API isn't supported on Windows Phones. So it bug at the start when I init the DB while everything is OK on Android and iOS.

Related

Microsoft Teams tasks.submitTask does not work on IOS

We have a published app in the Teams App Store.
We have implemented BarCode scanner feature in the task module and it is working fine. However when code is scanned we want to close the task module right away by executing microsoftTeams.tasks.submitTask();
This method is working great on Android and it closes the task module window, but it does not work on IOS.
On IOS we are receiving this error:
This call is not allowed in the 'content' context.
We have also tried to add parameters result and appIds but it didn't help.
IOS app version:
Microsoft Teams
Version: 3.16.0
Build: 3.16.77.2021163502/1004 (general)
Calling Version: 2021.34.01.8
Release Branch: 2021Sep-T1
Any help would be appreciated.
I also ran into this issue. To fix it, I downgraded #microsoft/teams-js from 1.11 to 1.10 and the modal began working as expected in iOS.

Deploy Application iOS not starting in Xamarin

I'm trying to create an app in Xamarin. On the Android side everything works fine. However when I deploy ios the app doesn't launch. It doesn't give an error or anything, I just get a response like this. I'm a bit confused about it.
Application it automatically stops. I don't know how to solve it. Ask for help. Thanks

Nativescript - weird page crash in ios

Got an app and works on Android and iOS.
There's one particular page in the app when I visit crashes in the production version of iOS app. Works fine in the emulator, works on the device in debug mode.
I narrowed it down to nativescript-imagepicker plugin. Even though no plugin specific code is being executed when the page is opened - it crashes as long as include the plug-in and have the code in a function (not called). If I comment out the code (but still include the plugin) - that works also.
What could cause such a problem?
Does the NS back-end run some code if the plugin is referenced in the page file?
Again works fine in emulator on iOS and also when tested directly on the device.
The problem occurs when the app is downloaded from itunesconnect - so there's no way for me to test it - console messages etc.
Using NS 3.2 with nativescript-imagepicker 0.3.6.

App not being started on device

I'm trying to play with NativeScript to create any simple android app. I've done step 1 from NativeScript's 'Getting Started' (setting up my osx environment) and right now, i have a barebones NativeScript app created with tns create and android platform added to it.
When running tns run android everything goes well and the final message before device debug logs (i'm not an android/ios/mobile dev so i assume that it's just some kind of debug log of what's going on connected device) is:
BUILD SUCCESSFUL
Total time: 11 seconds
Project successfully built
Using /Volumes/HDD/Users/michal/Workspace/Sandbox/tns_hello_world/platforms/android/bin/tns_hello_worl d-debug.apk
Successfully deployed on device with identifier '00099fbd72369f'
However, there is nothing going on my device after that. No app is being launched, no error message. Just completely nothing.
My setup is:
OSX 10.9.5
Java 1.8.0_45
Samsung GT-I9100
Android 4.1.2
Have you any idea what am i possibly doing wrong? Thanks in advance.
Your android device is not supported by NativeScript. Use device with Android 4.2 (API level 17) or newer. You can also try it on emulator.
Jan 2019
I verified in Android 8.1, it works fine.
First look, it looks like not working.
However, after changing the text "Play with NativeScript!" to "Hello world" in home.component.html, I could see the text. The homepage message ideally should say this.

JS not executed on Pebble Time with "notifyWithAppMessage: no delegate" in the app logs

I have a perfectly working (Pebble Classic) app on the Pebble app store. However, when installed on Pebble Time, the JS is not always executed (or takes too long to kick in) and in the logs I can see "[PHONE] pebble-app.js:?: notifyWithAppMessage: no delegate."
Is it Aplite compatibility issue or do I need to do something differently for Basalt platform. App is SDK2, thus compiled only for Aplite.
Note that the JS was not bundled in iOS app yet, so if you want to try it you must use Android app.
https://apps.getpebble.com/applications/5541de234b4d965adb000050
This should work. Please file a bug via the mobile app.

Resources