I recently upgraded to cordova 1.6.1 but i can't get it to deploy on the simulator or the device itself. The debugger shows Error: executing module 'setInfo' are you sure you have loaded iOS version of cordova-1.6.1.js? Though i'm sure i already did. Any help?
Solved it using this link
It turns out if you are using requireJS together with Phonegap or Cordova it can't load properly if you wrap Cordova on a require Call. So the solution would be to add this on your index.html
<script type="text/javascript" charset="utf8" src="[location of cordova.ios(for ios)]"></script>
Also follow the link's solution found at the very bottom.
Did you follow all the steps for the upgrade? Make sure you have the updated Cordova.plist since the plug-in names have changed.
Yes even I had same problem I am using cordova 1.9.0 i was simply coping www folder and didnt replace necessary (ios) version of cordova.js make sure of that u must be good then.
Guideline
Hope this works for you.
Related
I installed the FBAudienceNetwork (version 4.26.0) with CocoaPods (version 1.3.1). I followed the official manual as published at https://developers.facebook.com/docs/audience-network/ios, but the Xcode still not recognized the framework.
Just to be clear - I opened the project from xcworkspace file.
I tried the following steps with no success:
Install the framework manually, adding the ~/Documents/FacebookSDK path to Framework Search Path
Make sure that the pods project compiled using Swift 4
Added also FBSDKCoreKit (with Bolts) and FBSDKShareKit (both frameworks imported successfully)
Clean the project, delete DerivedData and also clean the pods cache and reinstalling the pods
Nothing worked so far. Anyone faced the same issue and know the reason?
Fixed in v4.27.0
Another solution that uses latest SDK (until Facebook fixes this) is to add a line to your Objc bridging header:
#import <FBAudienceNetwork/FBAudienceNetwork.h>
Of course this assumes you are using a bridging header, and if you're not then you could add one but that defeats the point of using modules. Hopefully Facebook fixes this soon.
I'm also seeing the same problem. I'm watching the Facebook bug report, but it's already been closed so I don't have high hopes of it being fixed anytime soon. Facebook suggested adding "$(SRCROOT)" to your Framework Search Paths as a work around, but it didn't work for me.
For now, I've manually locked my "FBAudienceNetwork" pod to version 4.25.0 with the following line in my Podfile:
pod 'FBAudienceNetwork', '4.25.0'
Try this solution it will fix your issue.
You need to rename FBAudienceNetwork.modulemap to module.modulemap in FBAudienceNetwork.framework/Modules folder.
v4.26
From the audience network installation guide
Good luck
Following this post:
https://developers.facebook.com/bugs/185968218614056/
and after downgrade to version 4.23 (supported by MoPub mediation as written here: https://github.com/mopub/mopub-ios-sdk/wiki/Integrating-Native-Third-Party-Ad-Networks) the integration is working (by adding the framework manually).
This is a bug in 4.26 version, so anyone that encourage the same issue, you have to wait for Facebook fixing this bug. I recommend to subscribe and follow the discussion I posted.
It works when I'm using only the framework within the "static" folder.
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
I'm a web developer, new to Ionic.But I can't find out how can I update my app on the server,like a website,and without having user redownload the app.Is there any solutions?
Thanks!
There's an available plugin you can use Cordova-hot-code-push
This plugin provides functionality to perform automatic updates of the web based content in your application.Basically, everything that is stored in www folder of your Cordova project can be updated using this plugin.
supported platforms: Android 4.0.0 or above.
iOS 7.0 or above. Xcode 7 is required.
It has a great wiki too.
Yes, as of recently there is a solution for this. Ionic calls it Ionic Deploy, and you can see the official documentation about it here.
However, one must note that this is still in Alpha version and they don't recommend it for production, but since they're very apt in shipping new features, I'm sure this will be even production ready very soon.
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
I am able to integrate iOS smsComposer phonegap plugin in cordova-1.9.0 but not able to integrate with cordova-2.1.0 js file. What could be the issue. Anyone worked on that plugin or is that plugin supports cordova-2.1.o or not and one more thing how to figure out whether phone gap plugins support our current cordova-x.x.x or not.
There is a new version of SMSComposer as of last month at
git phonegap plugins
I have it working with cordova-2.2.0.js
NOTES:
there's a file that they use: SMSComposer.js I had to change "Cordova" to "cordova" to get it working.
Also it is for older iOS versions. I think I broke it by changing that in Xcode, the first time I worked w the plugin.