I am new to Ionic 3 and I implemented Local notifications using plugin https://ionicframework.com/docs/native/local-notifications/ and it works just as expected, but every time I push my changes and take a pull again, I need to re-install the plugin and build again.
Any solutions?
Referring to this link, the correct way to install local notification plugin for Ionic 3 is by using ionic cordova plugin add de.appplant.cordova.plugin.local-notification
Most Ionic 3 users have CLI version 3 and above. Hope this help to others too!
As mentioned in the first comment in my question itself, the problem was resolved, so I am closing this topic by posting an answer.
I got the fix, it was this line in my package.json file that was causing the problem:
"cordova-plugin-app-event": "file:node_modules/cordova-plugin-app-event"Changing the path of the plugin fixed the issue.
Related
I don't get it!
I've been working with Ionic 3 for months now. I've had no trouble with builds. But for some reason now, every time I build I get the same version of code I previously had.
I've update cordova, so I have cordova 8.
I've deleted my ios platform and rebuild
I've done everything I can think of, and still I can't get the code to update through 'ionic cordova run ios' or through resetting versions and rebuilding through XCode.
I see others have run into this and none of their solutions have worked.
Has anyone figured out what's going on???
This is a big stretch, but I've run into this when using things like Code Push. I'll deploy my latest code to the device, forgetting that after startup Code Push will just go out and grab whatever code I deployed to Code Push last.
Another solution is to run following:
cordova clean
Did you update your Xcode to a beta version? This happened to me after I had updated to Xcode 10 Beta and I had to revert back to Xcode 9. Check your 'xcode-select' output and reset it to the defaults.
I currently have an ionic 1 project, but have just switched to using ionic cli2. I previously used to add crosswalk into my project, by running the following command, as mentioned here.
ionic browser add crosswalk
However, ionic cli2 no longer supports the browser command, and I am unsure how to install it in the correct way.
Any help would be appreciated.
It seems the answer is as follows:
I need to run
ionic plugin add cordova-plugin-crosswalk-webview
Ive pulled a repo of a Ionic 2 project from a friend of my but when I do ionic Serve it is showing a white page without any errors.
I saw in my folder structure that I don't have a www/build directory and I don't know how to say that the ionic CLI has to rebuild my project.
does anyone know the command for that?
The problem is that I did not updated my npm. After I installed all the packages with npm install it worked.
Did you try using Ionic Lab to build your app?
I am working on iOS App using Cordova 2.0.0, and I want to use Google Analytics, So I followed this github link step by step, but Unfortunately GA not updated, The only difference that
in the link Readme file "Make sure you are running Cordova(PhoneGap) 1.5.0"
and I use Cordova 2.0.0
but I see that the repo is updated to 2.0.0 and my App is work right but GA not updated
and here it is the code that I call in OnDeviceReady method, to start the GA and add event
var googleAnalytics = window.plugins.googleAnalyticsPlugin;
googleAnalytics.startTrackerWithAccountID("XX-XXXXXXXX-X");
googleAnalytics.trackEvent("category", "action", "label goes here", 666);
Can any one help or face the same problem?
Kindly the follow the below link,its very helpful and also worked for me.
----> https://github.com/jelled/google-analytics-cordova-ios
I am following a tutorial on how to enable push notifications in a Cordova project on iOS.
If I use the sample project that the author provided, everything is in place and works.
However I need to use the latest Cordova version so I started to make my own project. The Cordova project is created correctly. The problems start when I try to install the push notifications plugin.
On the tutorial the author says to make some changes to the cordova.plist file but why on earth the .plist file doesn't exist in the latest version of Cordova?
Is there another way to enable the plugin? We don't need the .plist?
I had the exact same problem. Got stuck at the same place. This is what I did
1- Install the Plugin using the CLI - phonegap local plugin add https://github.com/phonegap-build/PushPlugin.git
2- Since i could not find the PLIST adding the code to the AppDelegate.m would just create errors. So i found the following link:
Cordova 2.5.0 - Errors after referencing appDelegate.m to PushPlugin
3- Within the above link there is a sample of an appdelegate.m which i copied and replaced in my code. THis way i dont have to play worry about the plist.
4- I copied the rest of the JS and it worked immediately. Hope this helps.
you managed it how to solve the problem?
you have to make the changes in the config.xml-file
add: plugin
name="PushPlugin" and value="PushPlugin
inside config.xml
then add this to you your AppDelegate.m
https://github.com/hollyschinsky/PhoneGapBuildPushProject2/blob/master/PhoneGapBuildPushApp2/Classes/AppDelegate.m
Hope this was helpful - I'm on the same tutorial but couldn't manage the next step - maybe we could help each other a little