0 Favourites

Anyone played with AppMobi API's??

  • Hi guys, Has anyone managed to have a play with AppMobi API's using the call javascript plugin maybe?

    I would quite like to implement them into my app but im not sure how <img src="smileys/smiley6.gif" border="0" align="middle" />

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • I played quite a lot with it, where's the problem?

  • ranma, I just would like to know how you called them, using the calljs plugin?

  • yes. and if I must, I read the execution return. if you just want to do a simple vibrate and don't need to read the sent back var, you don't have to use the call javascript, you can use browser plugin to go to url "javascript:AppMobi.notification.vibrate();"

  • ranma, Thanks for the information! I will definitely use this now! <img src="smileys/smiley1.gif" border="0" align="middle" />.

    If you wouldn't mind the bother a few more questions..

    Have you tried any of the other API's that you could enlighten me with?

    I understand programming languages, I'm just not the best with JavaScript. Even though its very similar to ActionScript, my Favorite programming language.

    The CallJS plugin needs to call the function name,

    So for example if I wanted to use this api:



    var notificationsRegistered=function(event)




            if( !didcheckuser )



                didcheckuser = true;




                   alert("There was an error adding push notifications "+ event.message);




            alert("Notifications Enabled");


    There is no function name for me to call is there?


  • you have to have a variable that you read every few second from construct canvas:

    var foo;

    test.com");[/p] [/p] var notificationsRegistered=function(event)[/p] {[/p] if(event.success===false)[/p]     {[/p]         if( !didcheckuser )[/p]         {[/p]             AppMobi.notification.checkPushUser(�userID�,"newpassword");[/p]             didcheckuser = true;[/p]         }[/p]         else[/p]         {[/p]                foo = "There was an error adding push notifications "+ event.message;[/p]         }[/p]         return;[/p]     }[/p]         foo = "Notifications Enabled";[/p] }[/p] function returnFoo() {[/p] return foo;[/p] }[/p]

    and then in construct:

    every 1 second call javascript "returnFoo();"

    and set some text to javascript return value.

  • Thanks! <img src="smileys/smiley1.gif" border="0" align="middle" /> I get it now

  • no problem. cheers!

  • We're hoping to add better integration in the near future so ideally CallJS will just be a temporary measure!

  • Ashley, Thanks!

    Do you think the timeframe is worth me putting my project on hold? I have a app that will really show the power of C2 on mobile devices!

    The app is a image editor kinda thing, You can then save the image locally, and/or upload it to the shared gallery. Which you can view other people's work. I hope to be able to save it to the camera roll, which is possible with app mobi but I cannot figure out how to use there API to save it with the call js plugin.

    This app feels very nice to use, Thanks to septeven for his iScroll plugin, and your native tokenat() expression!

  • I'm afraid I can't say for sure, we can't really give ETAs on features.

  • smitchell

    Naive question: Does it need to be exported with appmobi to make the appmobi's api work ?

  • septeven,

    Yeah, because you need the AppMobi library's.

    Why? Was you thinking about making a plugin?

  • smitchell

    Ahah I have much to do before :)

    No, it was just to know, I never used appmobi (or phonegap), because you need a apple dev account and I think that's pretty expensive for a personal use.

  • There are ways to test your app on the device using phonegap or app mobi without having a developers license, And I do not mean local preview.

    It's a hacky way, I used to do it when making apps with Actionscript3. It's basically a fake certificate <img src="smileys/smiley1.gif" border="0" align="middle" />. Let me know if you need it <img src="smileys/smiley2.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)