Ionic App crashes when focus lost [duplicate] - angularjs

This question already has answers here:
Creating an Android Service with Phonegap? (Have phonegap app run even when closed)
(4 answers)
Closed 7 years ago.
Im not sure if anyone else has experienced this, but the App I am building crashes on Android when it loses focus. Its a basic time recording App using angular-timer. I have handled it so when the app loads it checks to see if a timer was in progress and resumes, but I thought I would see if anyone else out there has seen this happen.
I can recreate the issue by opening the App, then opening Google Play while the app is running in the background. When I return to the Ionic App the splash screen is shown and the App loads from start again.

It's not "crashing", it's simply just not running in the background. See the many related questions here on StackOverflow:
Can phonegap app work in background?
Creating an Android service with Phonegap?
Background service plugin on GitHub

Related

Can i run LibGDX inside IOS app using codenameone

Hello i am looking forward to convert my android app which runs libgdx in a fragment to IOS
So i am looking for a way to run libgdx inside IOS app.
For example when i switch to a screen in ios Libgdx instance will run on that screen. I am not talking about converting a standalone libgdx game to ios(like using robovm)
I know i can rewrite android app part of my application using codenameone but i am not sure about libgdx nor how
can i do what i want with codenameone ? is there any guide ? if i can do i will subscribe and start converting.
Thanks
Unfortunately this isn't currently possible as I mentioned in the reddit thread here. I don't think there's a technical blocker but it would require a lot of work and there's no motivation to do that work either from our side or the LibGDX side.

How do I launch a react js. app in full screen on windows?

I am building a react app for a kiosk with a windows operating system.
The app is supposed to appear as full screen (F11 look) right when it launches (without clicking any buttons).
I saw that as of a few years ago chrome does not support full screen launch. Has there been any changes with that?
unfortunately not directly. However, you can alter the shortcut to the web app by adding these two properties: --fullscreen --kiosk

Cordova Local notifications plugin not working after a while

I'm working on my 2nd app and having some problems implementing notifications.
It works when app in the foreground, and about 5 min after I put it to the background, even when the app is closed.
So the app listens for a firebase change and then launches;
cordova.plugins.notification.local.schedule
If the app doesn't respond after a while, I open it and it gives me the notifications
I used cordova.plugins.backgroundMode.enable(); to make the app run in the background, but no luck.
Any ideas or is there a better way to push notifications to your app?
For everybody still searching, You have to capsulate the code in a device.ready(), if not you'll run into this bug

How to update location in ionic from background?

So in my app i need to send my location's coordinates every 5 minutes through web service, I need to send it when app is in background state also. I am using background-geolocation plugin. Anyone please help me to do that. Thanks in advance
The other way running prcocess in background is by using android core if you know that.
I was also facing the problem of running process in background. I have installed the background plugin too. But it did not work. Then i wrote a customized code in android.
Steps i followed.
1.) Stored the data in cordova prefrences.
2.) Fetch the data from prefrences in android core file( a java file).
3.) Written service in android that check the prefrences after every 2 minutes.
I know this is quiet tuff but this was the only solution i got in hybrid app.

Launch SMS from a mobile browser [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
Sending an SMS from mobile browser
Is it possible to launch SMS/Texting application from a link in a website on a mobile browser? I doubt it's possible globally, but maybe it's possilbe for certain subsets (Blackberry, Windows Mobile, Google Android, etc etc), which we can detect and display.
You can use wap wtai primite: Send SMS. It runs on great majority of browsers.
I don't think it comes out of the box but you might be able to install a webkit widget on a recent series60 phone (samsung innov8, nokia n85...) to link the browser with the messaging application.
iOS specific docs:
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/sms.html
examples on other platforms such as Android here:
http://beradrian.wordpress.com/2010/01/15/special-links/

Resources