{"action":"created","issue":{"url":"https://api.github.com/repos/cfjedimaster/Cordova-Examples/issues/30","repository_url":"https://api.github.com/repos/cfjedimaster/Cordova-Examples","labels_url":"https://api.github.com/repos/cfjedimaster/Cordova-Examples/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/cfjedimaster/Cordova-Examples/issues/30/comments","events_url":"https://api.github.com/repos/cfjedimaster/Cordova-Examples/issues/30/events","html_url":"https://github.com/cfjedimaster/Cordova-Examples/issues/30","id":197418124,"number":30,"title":"ReferenceError: cordova is not defined in ","user":{"login":"rsa408","id":4402631,"avatar_url":"https://avatars.githubusercontent.com/u/4402631?v=3","gravatar_id":"","url":"https://api.github.com/users/rsa408","html_url":"https://github.com/rsa408","followers_url":"https://api.github.com/users/rsa408/followers","following_url":"https://api.github.com/users/rsa408/following{/other_user}","gists_url":"https://api.github.com/users/rsa408/gists{/gist_id}","starred_url":"https://api.github.com/users/rsa408/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsa408/subscriptions","organizations_url":"https://api.github.com/users/rsa408/orgs","repos_url":"https://api.github.com/users/rsa408/repos","events_url":"https://api.github.com/users/rsa408/events{/privacy}","received_events_url":"https://api.github.com/users/rsa408/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-23T19:38:20Z","updated_at":"2016-12-23T19:47:36Z","closed_at":null,"body":"Hi, \r\nThank you for your code sharing but I got falowing error for : [Cordova-Examples/securestorage_ionicnative/app/pages/home/home.ts](https://github.com/cfjedimaster/Cordova-Examples/tree/master/securestorage_ionicnative/app)  in run time\r\nReferenceError: cordova is not defined\r\n```\r\n    at securestorage.js:57\r\n    at new t (polyfills.js:3)\r\n    at SecureStorage.create (securestorage.js:56)\r\n    at home.ts:28\r\n    at t.invoke (polyfills.js:3)\r\n    at Object.onInvoke (ng_zone.js:236)\r\n    at t.invoke (polyfills.js:3)\r\n    at e.run (polyfills.js:3)\r\n    at polyfills.js:3\r\n    at t.invokeTask (polyfills.js:3)\r\n\r\n```\r\nand fallowing for data input and login button click:\r\n\r\n```\r\nObject {success: 0}\r\nplugin.js:33 Native: tried calling Dialogs.alert, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator\r\ncordovaWarn @ plugin.js:33\r\ncallCordovaPlugin @ plugin.js:112\r\n(anonymous) @ plugin.js:160\r\n(anonymous) @ plugin.js:132\r\nt @ polyfills.js:3\r\ntryNativePromise @ plugin.js:131\r\ngetPromise @ plugin.js:153\r\nwrapPromise @ plugin.js:159\r\n(anonymous) @ plugin.js:326\r\nvalue @ plugin.js:387\r\n(anonymous) @ home.ts:79\r\nSafeSubscriber.__tryOrSetError @ Subscriber.js:232\r\nSafeSubscriber.next @ Subscriber.js:174\r\nSubscriber._next @ Subscriber.js:125\r\nSubscriber.next @ Subscriber.js:89\r\nArrayObservable._subscribe @ ArrayObservable.js:114\r\nObservable.subscribe @ Observable.js:56\r\nHomePage.login @ home.ts:58\r\nView_HomePage0.handleEvent_35 @ component.ngfactory.js:507\r\n(anonymous) @ view.js:408\r\n(anonymous) @ dom_renderer.js:276\r\nt.invokeTask @ polyfills.js:3\r\nonInvokeTask @ ng_zone.js:227\r\nt.invokeTask @ polyfills.js:3\r\ne.runTask @ polyfills.js:3\r\ninvoke @ polyfills.js:3\r\nerror_handler.js:47 EXCEPTION: Uncaught (in promise): TypeError: Cannot read property 'remove' of undefined\r\nTypeError: Cannot read property 'remove' of undefined\r\n    at callInstance (http://localhost:8100/build/main.js:542:37)\r\n    at http://localhost:8100/build/main.js:580:17\r\n    at http://localhost:8100/build/main.js:466:17\r\n    at new t (http://localhost:8100/build/polyfills.js:3:11329)\r\n    at tryNativePromise (http://localhost:8100/build/main.js:465:20)\r\n    at getPromise (http://localhost:8100/build/main.js:487:16)\r\n    at SecureStorage.<anonymous> (http://localhost:8100/build/main.js:579:20)\r\n    at SecureStorage.value [as remove] (http://localhost:8100/build/main.js:740:61)\r\n    at SafeSubscriber._next (http://localhost:8100/build/main.js:55171:37)\r\n    at SafeSubscriber.__tryOrSetError (http://localhost:8100/build/main.js:1284:16)\r\nErrorHandler.handleError @ error_handler.js:47\r\nIonicErrorHandler.handleError @ ionic-error-handler.js:56\r\nnext @ application_ref.js:272\r\nschedulerFn @ async.js:82\r\nSafeSubscriber.__tryOrUnsub @ Subscriber.js:223\r\nSafeSubscriber.next @ Subscriber.js:172\r\nSubscriber._next @ Subscriber.js:125\r\nSubscriber.next @ Subscriber.js:89\r\nSubject.next @ Subject.js:55\r\nEventEmitter.emit @ async.js:74\r\nNgZone.triggerError @ ng_zone.js:278\r\nonHandleError @ ng_zone.js:257\r\nt.handleError @ polyfills.js:3\r\ne.runGuarded @ polyfills.js:3\r\nr @ polyfills.js:3\r\ni @ polyfills.js:3\r\ninvoke @ polyfills.js:3\r\nerror_handler.js:52 ORIGINAL STACKTRACE:\r\nErrorHandler.handleError @ error_handler.js:52\r\nIonicErrorHandler.handleError @ ionic-error-handler.js:56\r\nnext @ application_ref.js:272\r\nschedulerFn @ async.js:82\r\nSafeSubscriber.__tryOrUnsub @ Subscriber.js:223\r\nSafeSubscriber.next @ Subscriber.js:172\r\nSubscriber._next @ Subscriber.js:125\r\nSubscriber.next @ Subscriber.js:89\r\nSubject.next @ Subject.js:55\r\nEventEmitter.emit @ async.js:74\r\nNgZone.triggerError @ ng_zone.js:278\r\nonHandleError @ ng_zone.js:257\r\nt.handleError @ polyfills.js:3\r\ne.runGuarded @ polyfills.js:3\r\nr @ polyfills.js:3\r\ni @ polyfills.js:3\r\ninvoke @ polyfills.js:3\r\nerror_handler.js:53 Error: Uncaught (in promise): TypeError: Cannot read property 'remove' of undefined\r\nTypeError: Cannot read property 'remove' of undefined\r\n    at callInstance (plugin.js:208)\r\n    at plugin.js:246\r\n    at plugin.js:132\r\n    at new t (polyfills.js:3)\r\n    at tryNativePromise (plugin.js:131)\r\n    at getPromise (plugin.js:153)\r\n    at SecureStorage.<anonymous> (plugin.js:245)\r\n    at SecureStorage.value [as remove] (plugin.js:406)\r\n    at SafeSubscriber._next (home.ts:80)\r\n    at SafeSubscriber.__tryOrSetError (Subscriber.js:232)\r\n    at s (polyfills.js:3)\r\n    at new t (polyfills.js:3)\r\n    at tryNativePromise (plugin.js:131)\r\n    at getPromise (plugin.js:153)\r\n    at SecureStorage.<anonymous> (plugin.js:245)\r\n    at SecureStorage.value [as remove] (plugin.js:406)\r\n    at SafeSubscriber._next (home.ts:80)\r\n    at SafeSubscriber.__tryOrSetError (Subscriber.js:232)\r\n    at SafeSubscriber.next (Subscriber.js:174)\r\n    at Subscriber._next (Subscriber.js:125)\r\n```\r\nhow ever it return 0 for login but it is not going to main-page also I am using the fallowings:\r\n```\r\nIonic Framework: 2.0.0-rc.4\r\nIonic Native: 2.2.11\r\nIonic App Scripts: 0.0.47\r\nAngular Core: 2.2.1\r\nAngular Compiler CLI: 2.2.1\r\nNode: 6.9.1\r\nOS Platform: Windows 10\r\nNavigator Platform: Win32\r\nUser Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Mobile Safari/537.36\r\n\r\n``` \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cfjedimaster/Cordova-Examples/issues/comments/269037877","html_url":"https://github.com/cfjedimaster/Cordova-Examples/issues/30#issuecomment-269037877","issue_url":"https://api.github.com/repos/cfjedimaster/Cordova-Examples/issues/30","id":269037877,"user":{"login":"rsa408","id":4402631,"avatar_url":"https://avatars.githubusercontent.com/u/4402631?v=3","gravatar_id":"","url":"https://api.github.com/users/rsa408","html_url":"https://github.com/rsa408","followers_url":"https://api.github.com/users/rsa408/followers","following_url":"https://api.github.com/users/rsa408/following{/other_user}","gists_url":"https://api.github.com/users/rsa408/gists{/gist_id}","starred_url":"https://api.github.com/users/rsa408/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsa408/subscriptions","organizations_url":"https://api.github.com/users/rsa408/orgs","repos_url":"https://api.github.com/users/rsa408/repos","events_url":"https://api.github.com/users/rsa408/events{/privacy}","received_events_url":"https://api.github.com/users/rsa408/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T19:47:36Z","updated_at":"2016-12-23T19:47:36Z","body":"Hi,\r\nyes as I mentioned: i am using ionic 2.0.0.rc4 with cordova 6.X. "}}
{"actor":{"display_login":"rsa408"}}