How to schedule local-notifications when the app in background for iOS in Nativescript -angular - nativescript

Hai am developing an ios application using Nativescript-angular framework.My app contains local notifications functionality using timer. but I click the home button In my phone the timer was destroyed and notifications not came. Is there anyway to run the timer when my app is in background?

In order show notifications after app is moved to background, you should use BackgroundTask.
If you like to perform any operation even when the app is not running, then you should opt for BackgroundFetch

Related

Xamarin FCM not working while app is closed

I am using Firebase cloud messaging for remote notification in Xamarin Android, the notification are working fine while the app is in foreground and in background but if the app is closed the notification do not arrive.
I followed step by step the Xamarin tutorial.
Any idea?
The problem happeds because VS literally kills your app, so the background proccess that listens for push notifications die, so it will no longer respond. What you have to do for test push notifications is debug and reinstall de app every single time.
Best Regards.

Xamarin.Forms Launch or Wake app on bluetoothle button push

I now have a requirement for an iOS/Android app (Xamarin.Forms) to either wake or launch when a paired BluetoothLE button is pressed. The app may be in the background or even closed.
I have a POC app (modeled after Acr.Ble samples) and I'm currently using CoreBluetooth to scan and connect to the device and get services etc... I'm not sure what I need to do to get the app to wake or launch when the button is pressed.
I know Android and iOS may handle these things differently, so a cross-platform solution is not a requirement.
Any help is greatly appreciated!

Is it possible to create custom Android Wear notifications?

I have been doing lots of research trying to figure out if it is possible to create wear notifications with custom layouts over the past few months, but am struggling to find a solution.
I have tried to implement the following suggestions to no luck:
https://possiblemobile.com/2014/07/create-custom-ongoing-notification-android-wear/
http://android-wear-docs.readthedocs.org/en/latest/sync.html
Custom UI for Android Wear Notifications
Most of what I have read have instructed that in order to do this, I should create an android wear app with a data listener. The idea being the phone would send certain data to the watch (say a string) based on the type of notification it wants to send. I would disable the automatically generated wear notification. In its place, the Android Wear app listener would know what type of notification it is based on the string and display my custom pages for that notification instead.
My first problem I have run into is I have no idea how to debug code like this. Since in Android studio you can only launch the device app or the wear app, but not both at the same time.
The other question I have is, does the Android Wear app run in the background when the Device App is running? Do you have to open the Android Wear App first for the listener to be even working (if so then I guess this is not a solution to custom notifications)?
Is it actually possible to create custom layout android wear notifications?
If you want to use a custom layout for your notifications, you should create the notification on the watch, following Creating Custom Layouts. You can even make the custom notifications clickable, you can add actions that will open activities on the watch, etc.
For that, you can send a message from your phone to your watch and the listener implemented on your watch will receive it and then, create and display the notification using the correct layout corresponding to the message sent, for example.
In this case, the best way is to implement a WearableListenerService on your wearable. Its lifecycle is handled by the system which binds it only when necessary.
To debug, you install the wear app on the wear emulator or your watch, you install the mobile app on your phone and finally you connect the two following this tutorial if you're using the emulator or via bluetooth if you're using a watch (link in the tutorial).
The Android Wear app connects your phone to your watch, whether it is an emulator or not. So, in order for your message to be received, you must have connected wear and mobile via Android Wear. Then, once the connection is established, you don't necessarily need to keep it open. So yes, the Android Wear app runs in background.

Android Wear: implementation of standard Timer App

I'm trying to implement the same app as standard Timer app (for learning purposes).
Is it available sources of standard Timer app installed on Android Wear?
How to implement starting and displaying Activity from Sleeping Mode. Like green screen in Timer app, that appears when timer reach zero. (the problem: flags FLAG_TURN_SCREEN_ON, FLAG_KEEP_SCREEN_ON, FLAG_SHOW_WHEN_LOCKED and FLAG_DISMISS_KEYGUARD in onCreate method don't help to cancel Sleep Mode Screen and display target Activity to user).
Cheers!

Windows 8: Activating an app using Background task

I am doing a windows 8 App using c#. the app goes to suspend state if its inactive, I am trying to bring the app to front based on external events. So I used a background task with this app which monitors the external event. Once the event occurs I am able to send updates to the app but not able to bring it to front. any pointers will be helpful.

Resources