how to run closed application In background?

Akshay

I want to make my application run in background when closed.

Is there a possible way to continuously run the application in background, as i want to call some function which receives information from the server once in a day.

Any help would be appreciated.

Miron Alex

Simply put, No, you can not call methods while the app is in background. At most, you could just send push / local notifications.

If you want to change behaviour when the app returns from the background, use OnApplicationPause.

void OnApplicationPause(bool paused)
{
    if(!paused)
    {
        do whatever you want to do when the app comes back from the background
    }
}

if you want to do something on Android though, you can by creating a background service, but you'll need a plugin to communicate with Android.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to run a background thread in ruby?

分類Dev

How to run a background process in symfony

分類Dev

How to run a command in background always?

分類Dev

How to run a shell script in background?

分類Dev

Run console application in background until I exit from it

分類Dev

How to run another application from current application?

分類Dev

How to run background process in spring mvc framework

分類Dev

Ubuntu 13.04 Geary - how to run in the background?

分類Dev

How do I run Plack::Runner in the background?

分類Dev

terminal - run java app in background and how to close it?

分類Dev

How to run process in background using gcloud ssh

分類Dev

How to change the application state to foreground when it is in background

分類Dev

How to run Spring Boot Application as a Service?

分類Dev

How to run a test in Gitlab for nodejs application

分類Dev

How to run ulimit in a script with other application

分類Dev

How to run a Windows Service Application from a WPF application method

分類Dev

How can I run one VBA macro on all the (closed) Excel files in a folder?

分類Dev

How can i make sure that if i closed the program and run again it will create the new file in a new directory?

分類Dev

How to run DNX 'console app' as a background service on Linux?

分類Dev

How to kill SSH session that was started with the -f option (run in background)

分類Dev

How to run background process but still use framework facilities?

分類Dev

How do I run a sudo command needing password input in the background?

分類Dev

How can I run OpenVPN as root in the background, in a script?

分類Dev

Should suspended application in the background (by ctrl+z) still run or should it stop running?

分類Dev

How to make an opened application stay open after Python command prompt is closed?

分類Dev

How do I properly pause in SpriteKit when the application goes to background?

分類Dev

Delete RabbitMQ Queue when Application is closed abnormally

分類Dev

How can I run a graphical application in a container under Wayland?

分類Dev

How to make Playground execution time is as fast as if we run in iOS application

Related 関連記事

  1. 1

    How to run a background thread in ruby?

  2. 2

    How to run a background process in symfony

  3. 3

    How to run a command in background always?

  4. 4

    How to run a shell script in background?

  5. 5

    Run console application in background until I exit from it

  6. 6

    How to run another application from current application?

  7. 7

    How to run background process in spring mvc framework

  8. 8

    Ubuntu 13.04 Geary - how to run in the background?

  9. 9

    How do I run Plack::Runner in the background?

  10. 10

    terminal - run java app in background and how to close it?

  11. 11

    How to run process in background using gcloud ssh

  12. 12

    How to change the application state to foreground when it is in background

  13. 13

    How to run Spring Boot Application as a Service?

  14. 14

    How to run a test in Gitlab for nodejs application

  15. 15

    How to run ulimit in a script with other application

  16. 16

    How to run a Windows Service Application from a WPF application method

  17. 17

    How can I run one VBA macro on all the (closed) Excel files in a folder?

  18. 18

    How can i make sure that if i closed the program and run again it will create the new file in a new directory?

  19. 19

    How to run DNX 'console app' as a background service on Linux?

  20. 20

    How to kill SSH session that was started with the -f option (run in background)

  21. 21

    How to run background process but still use framework facilities?

  22. 22

    How do I run a sudo command needing password input in the background?

  23. 23

    How can I run OpenVPN as root in the background, in a script?

  24. 24

    Should suspended application in the background (by ctrl+z) still run or should it stop running?

  25. 25

    How to make an opened application stay open after Python command prompt is closed?

  26. 26

    How do I properly pause in SpriteKit when the application goes to background?

  27. 27

    Delete RabbitMQ Queue when Application is closed abnormally

  28. 28

    How can I run a graphical application in a container under Wayland?

  29. 29

    How to make Playground execution time is as fast as if we run in iOS application

ホットタグ

アーカイブ