Code Monkey home page Code Monkey logo

desktoptoastane's People

Contributors

alexroldugin avatar tuarua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

desktoptoastane's Issues

I can't package targeting .air (for desktop)

I am trying to package my project with your ANE as an .air for desktop, but i get the following error:

air_ane

Is it possible to package it like this or do i have to do it as native installer or captive time?

Thank you.

AIR for Windows 64 bits

Hello,

With the new AIR for Windows 64 bits, your ANE don't need to be recompiled to support that ?

Regards,
Hugo.

Windows activation suggestion

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

Windows 10 requirements

Does your Toast ANE have any requirements on Windows 10 as your WebViewANE with C++ dependencies ?

UTF-8

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.

isSupported

Suggestion: Add a isSupported in both macOS and Windows that returns true if the operation system is supported including the minimum OS version.

Usage

I tried: dtANE.init(NativeApplication.nativeApplication.applicationID,"Toast ANE Sample");
But init funcion does not exist.

Events not received on Windows 10

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.

isSupported does not work

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.