Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash as3 air custom notification for music player, help?

Explorer ,
Jan 18, 2018 Jan 18, 2018

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

11954620_10153574159971543_7746758011460724864_n.jpgqFoSXBc.pngrauGbQH.png

TOPICS
ActionScript
4.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jul 25, 2018 Jul 25, 2018

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.

MediaPlayer ANE Background Audio - YouTube

android_audio_notification.png

Translate
Community Expert ,
Jan 18, 2018 Jan 18, 2018

i don't understand your question(s).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 18, 2018 Jan 18, 2018

i want to this notification :

SeuIpyX2RTG-Yuwq_td7PQ.png

But I can only do :

nVxoGh_IQzSsH9wmvORq7g.png

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 18, 2018 Jan 18, 2018
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 18, 2018 Jan 18, 2018

Do you have a sample code, ANE or apk ?

I will receive accordingly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 18, 2018 Jan 18, 2018

i posted a link to a milkman ane which i have.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2018 Jan 19, 2018

there are no examples on this link.

Do you have a sample code, ANE or apk ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 19, 2018 Jan 19, 2018

i have sample code, but you have to purchase the ane.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 19, 2018 Jan 19, 2018

I buy the product but I need to see the demo.
If I do not want it, it's a waste.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2018 Jan 20, 2018

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);

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 21, 2018 Jan 21, 2018

do you know if the ANE you use supports local notification that includes a play/pause button?

play/pause button notification?

Untitled-1.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2018 Jan 21, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 21, 2018 Jan 21, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 21, 2018 Jan 21, 2018

I think they can find a solution to this situation.

myflashlabs or milkmanplugins.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 19, 2018 Jan 19, 2018

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 03, 2018 Feb 03, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 26, 2018 Jun 26, 2018

I have the same problem too (((

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 26, 2018 Jun 26, 2018

still, I could not solve the problem. If you find anything, can you share with us please. 😕

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 30, 2018 Jun 30, 2018

I am moving forward with building an ANE for this. There is no other way to solve the problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 30, 2018 Jun 30, 2018

All Hope for You!! )))

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 02, 2018 Jul 02, 2018

we are waiting excitedly

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 03, 2018 Jul 03, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 03, 2018 Jul 03, 2018

We are all ready in touch on Starling forum

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 24, 2018 Jul 24, 2018

Is there a development about this project?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 24, 2018 Jul 24, 2018

If anyone has access to our MediaPlayer ANE the current beta supports a notification for audio background playback. We'd welcome any feedback!

Cheers

air native extensions // https://airnativeextensions.com
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines