How to display a notification in adobe air for android - actionscript-3

I want to display notifications in my Adobe Air App for Android using Adobe Flash and Action Script 3.0 .
I want to use notifications for reminding people to update my app when a new version gets released, so how do I do this?
Thank you.

As DefinitelyNotAPlesiosaur has mentioned, using an ANE is the way to go.
You can find some free ANE's to use here:
http://www.riaxe.com/blog/200-adobe-air-anes/
but I would highly recommend district as they publish multiple well documented ANE's with example files and offer excellent support.
http://airnativeextensions.com
It sounds like you would need either Notifications or Push Notifications if your message was to appear when the user is not using the app, or Dialog if the message appears whilst the user is using the app.

Related

Custom Review prompts for Harman (Adobe) Air apps

Am i able to use custom preview prompts for an app on Mac App Store. As my understanding, we have to use native API for ratings only on iOS to pass app review. Anyone has experiences on shipping Harman Air apps on Mac App Store can do me a favor. Thanks in advance!
We are currently extended our Application Rater ANE to support macOS which you can use to get the native AppStore review prompts:
https://airnativeextensions.com/extension/com.distriqt.ApplicationRater
The update is due out later this month (Feb 2020).

How to prompt user to turn on Location Services using adobe air

I am developing an app that uses GPS, so typically the app must prompt the user to turn Gps on if it is muted.
So is there a way to open the Location Services menu from inside my app using adobe air?
I would imagine an ANE would be required for this.
Perhaps contact Distriqt to see if they would consider adding the functionality to one of their existing ANE's ?
http://airnativeextensions.com/extension/com.distriqt.NetworkInfo

How to obtain Android Device key in AIR with Action Script 3?

I am trying to make a push notification in my game using GCM through AWS.
I have bought this ANE: http://myappsnippet.com/gcm/comment-page-2/
But I cannot get the token in my device.
Can somebody help?
Adobe AIR does not have a built-in function to get any device id, because of various platforms. You should use some kind of extension, like Distriqt's Application ANE.

Paypal api for hybrid mobile app

I am in big dilemma for last few days while studying paypal API for creating an HTML5 based hybrid app that needs to use paypal api for carrying out some transactions.
What I need is I want to use some Paypal API in HTML5 based mobile app, that will finally get bundled into some native app, say for example .apk files.
The problem is :
I have not found a single link that explains that if the paypal provides any api for hybrid app.
I have read their new buttons, name value api, etc. Will any of these will work in my current application when they get deployed as an .apk for android? The thing that makes me worry is that paypal needs redirectURL, so what it will do incase of single page app?
Any links or references are welcome!
I would highly suggest you try Cordova for your App. It does HTML5 in an app format and works very well.
I don't know that you would want to make API calls but your HTML buttons would definitely work. Paypal also has a plugin that would work as well (Cordova is also called Phonegap).
PhoneGap/Cordova will be my recommendation for any hybrid mobile apps.
PayPal has an official plugin for PhoneGap with Android SDK.
Refer https://github.com/paypal/PayPal-Android-SDK-PhoneGap

In-app sms sending in as3

How to send sms within an iphone and android app using as3. I found this code while googling:
var callURL:String="sms:0-123-456-7890";
var targetURL:URLRequest = new URLRequest(callURL);
navigateToURL(targetURL);
Its working, but it is navigating the app to sms window controller. Can it be done without opening the sms controller window. Is there anything that opens a window within the app itself. Is there any air native extenson which perform this for android and iphone?
Yeah, using navigateToURL is going to pop you over to the phones default SMS app. To get around this you're going to need to use a native extension.
I know of one for Android:
https://github.com/mr-archano/Android-AIR-Extensions
If you have an Android phone you can check out a demo of this ANE inside of the AIRexplorer app. Select the SMS ANE version from the list (the app includes an extension as well as navigateToURL)
I don't know of one for iOS right now so you may have to do a little bit of digging
Oh Also, wanted to add a comment because I'm not really sure of your intent here.
If your goal is to send a sms without any user interaction that is not going to be possible. ANE or not
I very much doubt that either ios or android (maybe if you root your device?) would allow sending a SMS without the users explicit consent.