tuarua / desktoptoastane Goto Github PK
View Code? Open in Web Editor NEWAdobe Air Native Extension for displaying adaptive and interactive toast notifications in Windows 8, 10 and OSX
License: MIT License
Adobe Air Native Extension for displaying adaptive and interactive toast notifications in Windows 8, 10 and OSX
License: MIT License
Hello,
With the new AIR for Windows 64 bits, your ANE don't need to be recompiled to support that ?
Regards,
Hugo.
Not an issue, just a suggestion.
Maybe you could add this code on the samples classes, inside onToastClicked before NativeA pplication.nativeApplication.activate(); just to make sure the window (app) is restored properly:
var window:NativeWindow = stage.starling.nativeStage.nativeWindow ;
if( window.displayState == NativeWindowDisplayState.MINIMIZED ){
window.restore();
}
if( !window.visible ) {
window.visible = true ;
}
For Adobe AIR to handle these Push Notifications?
If so is there any steps to set up listening for Push Notifications?
May this remove the need for Visual C++ Distributable on the client machine with the price of increasing a little the application size ?
https://www.codeproject.com/Tips/851725/Visual-Cplusplus-How-to-Create-Standalone-Win-Appl
I could do a new test on a clean Windows 10 installation.
Does your Toast ANE have any requirements on Windows 10 as your WebViewANE with C++ dependencies ?
Hi,
Great job! it work well.
When i try to send a toast at Hebrew. i get Gibberish.
i try to make the XML on UTF-8 encoding but its style Gibberish.
Suggestion: Add a isSupported in both macOS and Windows that returns true if the operation system is supported including the minimum OS version.
I tried: dtANE.init(NativeApplication.nativeApplication.applicationID,"Toast ANE Sample");
But init funcion does not exist.
Hi,
Before everything i'm fairly new to using ANE so maybe I did something wrong but I can't get any interactions with the toasts, they are shown but no events are returned to the app. Here's what I did :
On Flash CS6, Windows 10, with the latest Air SDK (25.0.0.134), I created a new project, added the ANE taken from the repository (DesktopToastANE/native_extension/ane/DesktopToastANE.ane)
Then wrote a minimal app :
import com.tuarua.DesktopToastANE;
import com.tuarua.toast.ToastEvent;
import com.tuarua.toast.constants.ToastActivationType;
import com.tuarua.toast.windows.ToastText;
import com.tuarua.toast.windows10.ToastAction;
import com.tuarua.toast.windows10.ToastInput;
import com.tuarua.toast.windows10.Toast10;
import com.tuarua.windows10;
use namespace windows10;
var toaster:DesktopToastANE = new DesktopToastANE();
trace("toaster.supportedNamespace", toaster.supportedNamespace);
toaster.init(NativeApplication.nativeApplication.applicationID, "Test ANE");
NativeApplication.nativeApplication.addEventListener(Event.EXITING, function(e:Event) {
trace("Exit");
toaster.dispose();
});
toaster.addEventListener(ToastEvent.TOAST_CLICKED, function(e:ToastEvent) {
trace("TOAST_CLICKED", e);
});
toaster.addEventListener(ToastEvent.TOAST_DISMISSED, function(e:ToastEvent) {
trace("TOAST_DISMISSED", e);
});
toaster.addEventListener(ToastEvent.TOAST_ERROR, function(e:ToastEvent) {
trace("TOAST_ERROR", e);
});
toaster.addEventListener(ToastEvent.TOAST_HIDDEN, function(e:ToastEvent) {
trace("TOAST_HIDDEN", e);
});
toaster.addEventListener(ToastEvent.TOAST_NOT_ACTIVATED, function(e:ToastEvent) {
trace("TOAST_NOT_ACTIVATED", e);
});
toaster.addEventListener(ToastEvent.TOAST_TIMED_OUT, function(e:ToastEvent) {
trace("TOAST_TIMED_OUT", e);
});
var xml:XML = XML(<toast launch="app-defined-string">
<visual>
<binding template="ToastGeneric">
<text>Test title</text>
<text>Test line</text>
</binding>
</visual>
<actions>
<action activationType="foreground" content="See more details" arguments="see"/>
<action activationType="foreground" content="Dismiss" arguments="dismiss"/>
</actions>
</toast>
);
toaster.createFromXML(xml);
toaster.show();
The notification is displayed, with the right options and text but whenever I click one button, closes it or wait for time out none of the events in the code are triggered.
I have tried to organize the code in a class but that didn't change anything.
Hello,
The propery isSupported is completly ignored.
You told before that the Windows 10 version will crah on macOS and also on previous versions of Windows.
However I saw the isSupported property and it's complety ignored.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.