Copy link to clipboard
Copied
Hi, How can I make this system as3/air ?
I have found a lot of ANE and examples but it is not that way.
i want to My sound Play/Pause Notification.
Andorid links:
Playing background Audio in Android with MediaSessionCompat - Learn Programming Together
Android custom notification for music player Example | Tutorials Face
Here's a link to a simple background audio player APK
Dropbox - TestBackgroundAudioPlayer.apk
And a quick little video of the notification in action along with the Android Wear interaction.
Copy link to clipboard
Copied
i don't understand your question(s).
Copy link to clipboard
Copied
i want to this notification :
But I can only do :
my use code :
notificationManager = new NotificationManager();
n = new Notification();
n.actionLabel = "Open";
n.alertPolicy = NotificationAlertPolicy.EACH_NOTIFICATION;
n.cancelOnSelect = true;
n.hasAction = true;
n.actionData = "customAction";
n.iconType = NotificationIconType.MESSAGE;
n.numberAnnotation = 0;
n.ongoing = false;
n.playSound = true;
n.repeatAlertUntilAcknowledged = false;
n.vibrate = true;
n.tickerText = "My Ticker Text";
n.title = "My Title Text";
n.body = "My Body Text";
link: AIR ANE Notifications
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Do you have a sample code, ANE or apk ?
I will receive accordingly.
Copy link to clipboard
Copied
i posted a link to a milkman ane which i have.
Copy link to clipboard
Copied
there are no examples on this link.
Do you have a sample code, ANE or apk ?
Copy link to clipboard
Copied
i have sample code, but you have to purchase the ane.
Copy link to clipboard
Copied
I buy the product but I need to see the demo.
If I do not want it, it's a waste.
Copy link to clipboard
Copied
import com.milkmangames.nativeextensions.*;
import com.milkmangames.nativeextensions.events.*;
var ONESIGNAL_APP_ID:String="put your id here";
var GCM_PROJECT_NUMBER:String="put your project number here";
// setup
function setupOneSignal():void
{
// onesignal mode
EasyPush.initOneSignal(ONESIGNAL_APP_ID, GCM_PROJECT_NUMBER, true);
EasyPush.oneSignal.addEventListener(PNOSEvent.ALERT_DISMISSED,onAlertDismissed);
EasyPush.oneSignal.addEventListener(PNOSEvent.FOREGROUND_NOTIFICATION,onNotification);
EasyPush.oneSignal.addEventListener(PNOSEvent.RESUMED_FROM_NOTIFICATION,onNotification);
EasyPush.oneSignal.addEventListener(PNOSEvent.TOKEN_REGISTERED,onTokenRegistered);
EasyPush.oneSignal.addEventListener(PNOSEvent.TOKEN_REGISTRATION_FAILED, onRegFailed);
}
// see tags
function setOneSignalTags():void
{
var tags:Object={Tag1:"first tag", Tag2:"Second tag"};
EasyPush.oneSignal.setTags(tags);
}
Copy link to clipboard
Copied
do you know if the ANE you use supports local notification that includes a play/pause button?
play/pause button notification?
Copy link to clipboard
Copied
i'm not sure that makes sense.
if a user action (like pressing a button) is supposed to trigger something, why would you use push notification? that's like trying to apply a complex solution to a simple problem.
if you want something to appear when a user presses your play/pause, handle that in your actionscript.
Copy link to clipboard
Copied
The screen he is showing isn't the app, it's the lock screen of the phone. It still doesn't need to be push notification, it's all just a local event. But do you know of any ANE that can show that sort of notification?
I just realized there may be a terminology difference, and that this thing is really a widget. See this article:
https://www.androidauthority.com/lock-screen-widgets-android-lollipop-611516/
I don't know if there is a widget ANE.
Copy link to clipboard
Copied
I think they can find a solution to this situation.
myflashlabs or milkmanplugins.
Copy link to clipboard
Copied
kglad​ one thing to be sure of is the play button feature. I know local notifications more than push notifications, and for this application I thinks that local ones would do. It would avoid any push servers charges too.
But for interest, do you know if the ANE you use supports local notification that includes a play/pause button?
Copy link to clipboard
Copied
I am building something similar, and I don't think that either myflaslabs or milkman ANE will do. I have both but they can only be used for a simple alert - local notification. The main missing feature is the button place.
I am thinking of creating an ANE on my own just for this.
Copy link to clipboard
Copied
I have the same problem too (((
Copy link to clipboard
Copied
still, I could not solve the problem. If you find anything, can you share with us please. 😕
Copy link to clipboard
Copied
I am moving forward with building an ANE for this. There is no other way to solve the problem.
Copy link to clipboard
Copied
All Hope for You!! )))
Copy link to clipboard
Copied
we are waiting excitedly
Copy link to clipboard
Copied
The ANE will be released after some time from myflashlabs. If anyone want to chip in for the R&D, you are more than welcome. PM me.
Copy link to clipboard
Copied
We are all ready in touch on Starling forum
Copy link to clipboard
Copied
Is there a development about this project?
Copy link to clipboard
Copied
If anyone has access to our MediaPlayer ANE the current beta supports a notification for audio background playback. We'd welcome any feedback!
Cheers