EddyVerbruggen / nativescript-email

:envelope: NativeScript plugin for opening draft e-mails
MIT License
47 stars 15 forks source link

Not working with angular #3

Closed vinayhfs closed 8 years ago

vinayhfs commented 8 years ago

Email plugin Not working in nativiescript + ng but works in just nativescript Error - JS: Unhandled Promise rejection: Cannot read property 'startActivity' of undefined ; Zone: angular ; Task: Promise.then ; Value: TypeError: Cannot read property 'startActivity' of undefined JS: Error: Uncaught (in promise): TypeError: Cannot read property 'startActivity' of undefined

EddyVerbruggen commented 8 years ago

Perhaps you're better served by moving this to StackOverflow of the NativeScript Slack channel since this doesn't ring a bell for me...

vinayhfs commented 8 years ago

Fixed - context.startActivity(mailIntent); context was null even though set at top. So line changed to application.android.context.startActivity(mailIntent);

EddyVerbruggen commented 8 years ago

Ah, yeah, that's part of this changeset but it's not released yet, I'll do that now.