Google Cloud Messaging service in flex mobile project - air

I,m in process of developing GCM service in flex mobile project. I want to clear some things initialy.
1- I came up to some tutorials that help in achieving the task, but they require me to download their native extension (.ane file) and add it to the project lib and use it to achieve the task. what is this .ane file used for?
2- can i use the GCM service in flex mobile project without such .ane file?
kindly help

I suppose you need an ANE - unless Adobe extends flash.notifications one day to support Android too.

Az Alex said, you need an ANE because Adobe road map says that they will consentrate mainly on the Air itself and developers should build the extensions themselves... http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html
for a GCM extension, I would suggest you to take a look at http://myappsnippet.com/gcm which supports custom notification icons and sounds...

Related

Creation of SDK in React Native and generate .aar file to integrate with native apps

The main objectve we are looking for is to create an SDK of a react native app by providing an .aar file and giving it it clients so our app can be intgrated in clients (Native) app with minimal configuration and without actual exchange of code from both the ends (excluding some custom files that act aas a ode of communication fbetween client and our app).
I have gone through below articles to achieve the same :-
https://medium.com/#gauravasrivastava89/sdk-development-with-react-native-part-1-46580839eae9
https://medium.com/#jyubinpatel/make-reactnative-module-as-a-library-and-how-its-used-into-android-native-application-35b13f65ac7c
while following the steps from the same iam not able to move past the step where i have to install maven-publish as i cannot find it or it may have been depricated.
Image for Maven-publish
i Need help regrading following 2 usecases.
1.Is there any easier way to generate .aar file without needing clients codebase or if needed with updated libraries and methods.
2.if there is any other approach to fullfill the objective of sharing sdk and including for clients without exposing the code it would be very helpful.

AIR Google Play Services library classes missing apk

I am working on a test app to test an ane I have built with Google Play Services included. I had things working fine, but recently I updated the version of the Google Play Services library I was using, and now when I built the project in Adobe Flash CC, it seems to be stripping out the Google Play Services classes from the apk. When I decompile the apk I can see they are missing. When I put back the old version of GPlay, I can see it doesn't strip them out.
This post mentions a tool within the AIR needs updating (dx.jar) and this post seems to have the same message. I did update that file but it did not fix the issue.
Thanks!
The problem will be with the AIR SDK. You need to update the dx.jar in your AIR SDK, I've logged an issue with Adobe about this but they haven't updated the build tools as yet so we have to do it manually:
Have a look here for the details: http://airnativeextensions.com/knowledgebase/tutorial/5
It's important that you have a recent version of the Android SDK installed and updated for this to work.
Also rather than packaging the Google Play Libraries into your ANE I suggest you use a shared ANE, like this one:
https://github.com/distriqt/ANE-googleplayservices
Otherwise you can cause conflicts with other ANE's that use the Google Play Library.

Cordova Plugin to be used in Worklight, for geofencing in Background even if the app is suspended/terminated and also when the phone restarts

I have been investigating in this feature for a long time. All I can find is a pure iOS native code that checks for the key "UIApplicationLaunchOptionsLocationKey" from the LaunchOptions, if it is found it calls the LocationManager to start it and keep on listening to the location updates.
You can find this code in this github:
https://github.com/voyage11/GettingLocationWhenSuspended
I need the same concept, but with a way to integrate it in Worklight, through cordova plugin or something. As I'm already creating the geofencing triggers using the hybrid Worklight APIs, I need to keep the geofencing alive even when the app is suspended/terminated and also if the phone is restarted.
Please I need you support urgently. Thanks
Worklight provides the ability to create Cordova plug-ins.
You could implementing your own native code then, mimicking that from the Xcode project you've found on GitHub.
Read more here: Adding native functionality to hybrid applications

Build Adobe Air with Java jar file for Android

I am not sure whether this question ever asked here or I am missing it ? Anyway, I think my problem is bit different. Here we go:
I have a library (authorization.jar) in Android. This communicates with other service for authorization things.
This library (authorization.jar) is used in many other Android applications.
Now we are moving to Adobe Air and we need to integrate that authorization.jar in Adobe Air and finally create the APK for Android.
We will publish APK only.
How is that possible ?
You can do this with AIR Native Extensions.
It is somewhat complex, but you can find a number of tutorials here: http://www.adobe.com/devnet/air/native-extensions-for-air.html

Getting sproutcore application files to use them in a native app via Appcelerator Titanium

I would like build a app using sproucore framework, but i also want to integrate it with Titanium to have some desktop capability like file system, packaging, offline working etc...
I know that with sproutcore 2 this would be pretty easy since it allows to use the framework like a normal javascript library. But the project is still in beta and the docs are patchy at most (I consider patchy even the 1.x docs, actually).
So, I want to ask, which would be the best way to go to integrate sproutcore and Titanium API?
Titanium's main mission is to use JavaScript to build native apps, not to provide a OS-access layer for web apps. It would be hard to mix native and SproutCore UI elements.
That being said, here's some information that might help you:
Titanium has reversed it's application model starting with version 1.0:
http://developer.appcelerator.com/question/71/what-happened-to-html--css
The main app doesn't run in a web view anymore, instead it runs directly in JavaScriptCore and creates only native UI elements. One of the native UI elements is a web view
(http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.WebView-object)
and it's possible to make that full screen and run your SproutCore app inside of the web view. From there, you can call out to Titanium to call Titanium methods for file system access and the like.
Also, if you only target the desktop, you could even access the JavaScript context object of a webview and use it directly in JavaScriptCore.
Johannes