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

Flash as3 air custom notification for music player, help?

Explorer ,
Jan 18, 2018 Jan 18, 2018

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

11954620_10153574159971543_7746758011460724864_n.jpgqFoSXBc.pngrauGbQH.png

TOPICS
ActionScript

Views

3.4K

Translate

Translate

Report

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

Votes

Translate

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

Copy link to clipboard

Copied

i don't understand your question(s).

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Do you have a sample code, ANE or apk ?

I will receive accordingly.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

there are no examples on this link.

Do you have a sample code, ANE or apk ?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

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

}

Votes

Translate

Translate

Report

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

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?

Untitled-1.png

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

I think they can find a solution to this situation.

myflashlabs or milkmanplugins.

Votes

Translate

Translate

Report

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

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?

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

I have the same problem too (((

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

All Hope for You!! )))

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

we are waiting excitedly

Votes

Translate

Translate

Report

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

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.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

We are all ready in touch on Starling forum

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Is there a development about this project?

Votes

Translate

Translate

Report

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

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

air native extensions // https://airnativeextensions.com

Votes

Translate

Translate

Report

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