This version is completely unsupported and untested on NativeScript 6. Please upgrade your plugin to the tested, supported and maintained version.
Documentation for this plugin is located at here
Add the ability to tie into the Page events globally.
This version is completely unsupported and untested on NativeScript 6. Please upgrade your plugin to the tested, supported and maintained version.
Documentation for this plugin is located at here
The on()
and addEventListener()
methods exist on the NS Page
object, so the Page
object is never extended and the special First events are never defined.
Using "tns-core-modules" version 5.4.1 with Angular and TypeScript.
Simply run the app and observe that the First events (i.e. Page.navigatingToFirst
) are not defined.
Hi, Thank you for wanting to report an issue on this project!
If this is a bug report or feature request, awesome!
If you are asking for support, the issue will be closed with a gentle reminder that this is an open source repo with the full source.
Since this is a open source plugin, any and all support needs to be paid, you can contact me at [email protected].
Please give me a good overview of the problem.
Visit the following URL,
https://discourse.nativescript.org/t/nativescript-hacks-here-are-mine-share-yours/3516
I am new to NativeScript, so is it possible for you to help me solve this issue? I have also sent you an email on your ID mentioned above.
Please do a tns info
on your project and paste the results here.
nativescript - 3.4.3 - Up to date
tns-core-modules - 3.4.1 - Up to date
tns-android - 3.4.2 - Up to date
tns-ios - 3.4.1 - Not installed
Please list any steps or source code to duplicate the issue.
I added the following code in app.js,
require('nativescript-globalevents');
const label = require('ui/label').Label();
label.on('loadedEvent', function(event) {
if (event.object.android) {
event.object.android.setGravity(17);
}
});
Hi,
Thanks for this plugin.
Unfortunately the latest version (v1.2.0) breaks with nativescript-angular
.
Just loading the plugin breaks the application with this error:
JS: ERROR Error: Uncaught (in promise): Error: No provider for NewPage!
JS: Error: No provider for NewPage!
JS: at injectionError (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:1201:90) [angular]
JS: at noProviderError (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:1239:12) [angular]
JS: at ReflectiveInjector_._throwOrNull (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:2681:19) [angular]
JS: at ReflectiveInjector_._getByKeyDefault (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:2720:25) [angular]
JS: at ReflectiveInjector_._getByKey (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:2652:25) [angular]
JS: at ReflectiveInjector_.get (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:2521:21) [angular]
JS: at resolveNgModuleDep (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:9524:25) [angular]
JS: at NgModuleRef_.get (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:10594:16) [angular]
JS: at resolveDep (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:11082:45) [angular]
JS: at createClass (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:10946:85) [angular]
JS: at createDirectiveInstance (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:10783:37) [angular]
JS: at createViewNodes (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:12224:53) [angular]
JS: at callViewAction (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:12654:13) [angular]
JS: at execComponentViewsAction (file:///data/data/org.nativescript.globalevents120/files/app/tns_modules/@angular/core/bundles/core.umd.js:12563:13) [angular]
All NativeScript components versions information
┌──────────────────┬─────────────────┬────────────────┬───────────────┐
│ Component │ Current version │ Latest version │ Information │
│ nativescript │ 3.2.1 │ 3.2.1 │ Up to date │
│ tns-core-modules │ 3.2.0 │ 3.2.0 │ Up to date │
│ tns-android │ 3.2.0 │ 3.2.0 │ Up to date │
│ tns-ios │ │ 3.2.0 │ Not installed │
└──────────────────┴─────────────────┴────────────────┴───────────────┘
Overriding the Page
-class with the NewPage
-class breaks angular's Dependency Injection
.
Please list any steps or source code to duplicate the issue.
tns create <project> --ng
import 'nativescript-globalevents
to app/app.module.ts
tns run android
or tns run ios
https://github.com/m-abs/ns-debugging/tree/master/globalevents-1.2.0
A client of nativescript-globalevents notice d that there are some console.log left in the source code
By the way, I'm getting this: CONSOLE LOG file:///app/tns_modules/nativescript-globalevents/globalevents.js:98:16: Handler onNavigatingTo navigatingTo - I think someone left this diagnostic in the latest release code.
Hi @NathanaelA!
As of late the CSS classes from nativescript-platform-css
are not added anymore in modals. If you remember, earlier this year I had submitted this PR, which fixed a similar problem for that plugin but it has stopped working since. It seems that this time the issue is with this plugin however, where the shownModallyFirst
event is not firing (at least not in an Angular project).
As I recall there were some changes in NS with navigation in modals, and I suspect it may have to do with needing to attach to shownModally
at the frame instead of the page as described here:
Currently, you would need to attach to the 'shownModally' event on the frame as the frame is the view (1st parameter) passed in showModal method
From your experience, does this sound plausible? Do you know what might be the culprit here and/or how to fix this?
Thanks!
$ tns info
✔ Getting NativeScript components versions information...
✔ Component nativescript has 5.1.0 version and is up to date.
✔ Component tns-core-modules has 5.1.0 version and is up to date.
✔ Component tns-android has 5.1.0 version and is up to date.
✔ Component tns-ios has 5.1.0 version and is up to date.
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.