User Tag List

Results 1 to 8 of 8

Thread: Check for system online - example - Android/ windows / iOS/ HTML5

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Talking Check for system online - example - Android/ windows / iOS/ HTML5

    Here is how you can check if your game has internet connectivity - if the device is online you will get an "online message"
    This method needs a php file uploaded to your website.


    upload index.php your server
    you can also rename index.php
    to whatever you want as long as you change it inside fusion too

    online_offline_check.zip


    sparckman

  2. #2
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,337
    Mentioned
    49 Post(s)
    Tagged
    0 Thread(s)
    Downside is, that if the website is down, it tells you that the game doesn't have internet, but it really could be still having an connection.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    929
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you could get "http://www.google.com" and check if it starts with a "<" although it wastes a lot of data.
    what is great about having a text/php file on your own server is that you could use it to get certain information, such as latest version, or modify any kind of stats, i use to f.ex adjust the value of rewards given for certain actions. (within limits, since it could be cracked easily)

  4. #4
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,337
    Mentioned
    49 Post(s)
    Tagged
    0 Thread(s)
    This works great, but when you put your Android Phone in Airplane mode, then the Apps hangs up in the air

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,423
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I ran into that too, I added a counter to try a few few times, if the value keeps returning = 0 more than 5 times - then move the user to offline mode.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    warlords's Avatar
    Join Date
    Oct 2011
    Location
    Dk
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    also it only count 1 in the list. I tryed to make 2 exe and open them, too see if they came up on 2 on the list? possible!

  7. #7
    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator ProUnicode Add-on

    Join Date
    Jun 2011
    Posts
    628
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It is much better to ping server ip

  8. #8
    Forum Moderator

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Perry's Avatar
    Join Date
    Dec 2013
    Location
    Watertown, WI
    Posts
    4,337
    Mentioned
    49 Post(s)
    Tagged
    0 Thread(s)
    Can you ping an IP with the Get object?

Similar Threads

  1. [PAID] Extension developers needed. Windows, Mac, HTML5, iOS, Android
    By JHale in forum Paid Design & Development Requests
    Replies: 1
    Last Post: 24th March 2015, 05:03 PM
  2. [PAID] Read zip files in Windows, IOS, Android, and HTML5
    By JHale in forum Paid Design & Development Requests
    Replies: 0
    Last Post: 9th July 2014, 11:52 PM
  3. Replies: 0
    Last Post: 1st February 2013, 10:05 AM
  4. Android Object - Check for online
    By Kisguri in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 15th November 2011, 04:21 PM
  5. A way to check system processes running in MMF2?
    By Stephen in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd August 2008, 10:10 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •