Comments (12)
+1 to this. We've having the same problem getting projects using this plugin to compile in XCode 6.3.
from cordova-plugin-geofence.
I actually fixed this, it looks like there were some mild changes to swift that broke this. One issue is the NSString optional assigned to a String variable, just changing NSString to String fixes it and there's some "as" to "as!" changes. I forked the repo, I'll make changes and push and see if he can help test and make sure that everything still works as expected before he merges.
Thanks!
from cordova-plugin-geofence.
Great 👍 . I haven't upgraded to XCode 6.3 yet. Waiting for PR
from cordova-plugin-geofence.
Hey tsubik! I just pushed this to the forked repo, let me know when you have a chance to look it over. It has formatting changes on top of the code changes so the diffs are a little muddy.
EDIT -- The muddy diffs bothered me so I reverted back and did a copy over. Just the changes are in the diffs for ease of view
from cordova-plugin-geofence.
Hey @DataHerder I'm getting the following errors after installing your fork of the plugin:
2015-04-17 09:26:28.044 notificationTesterApp[1520:376116] CDVPlugin class HWPGeofencePlugin (pluginName: GeofencePlugin) does not exist.
2015-04-17 09:26:28.045 notificationTesterApp[1520:376116] ERROR: Plugin 'GeofencePlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
2015-04-17 09:26:28.045 notificationTesterApp[1520:376116] -[CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = ["GeofencePlugin534443115","GeofencePlugin","initialize",[]]
2015-04-17 09:26:28.045 notificationTesterApp[1520:376116] CDVPlugin class HWPGeofencePlugin (pluginName: GeofencePlugin) does not exist.
2015-04-17 09:26:28.046 notificationTesterApp[1520:376116] ERROR: Plugin 'GeofencePlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
This is after removing the generated XCode project and creating it again using cordova platform add ios
and cordova build ios
.
from cordova-plugin-geofence.
I was able to successfully compile the application using my repo with a new starter project. Here are the steps:
Step 1:
ionic start test-geo
Step 2:
sudo chmod 777 test-geo
I need to do that on my machine or I get a node error, may not be the same for you
Step 3:
sudo npm install
Step 4:
cordova plugin add https://github.com/DataHerder/cordova-plugin-geofence.git
Step 5:
ionic platform add ios
Step 6:
Open up xcode project in Xcode and compile
from cordova-plugin-geofence.
What kind of build settings are you using in Xcode? I'm getting the following errors now: when targeting iOS 7.0 or higher as my deployment target: screenshot
I've created a fresh project and followed the above steps.
from cordova-plugin-geofence.
Turns out that creating a new ionic project over the top of the existing project isn't a good idea. It's running as expected now without compile errors. :-P
from cordova-plugin-geofence.
👍 cool!
from cordova-plugin-geofence.
@DataHerder
I can confirm that too (the String an as!) I made the change on my project and it worked great.
Are you doing a pull request? If not, I will
from cordova-plugin-geofence.
I am unable to create a branch on this project and I am unable to push to a branch on this project at this time unless tsubik gives me access apparently. I get Forbidden access pushing a branch "swift-change" to the repo.
from cordova-plugin-geofence.
from cordova-plugin-geofence.
Related Issues (20)
- Not getting IOS Notification , but Works on android HOT 2
- Geofence notification in background is working up to android version 7 only
- Unable to install the plugin HOT 3
- repo dead? HOT 2
- It is not working with ionic 4 Cordova 9 HOT 2
- Notifications are not working on latest android version >= 8 HOT 4
- Geofence notifications are not working in background HOT 2
- Not working on ios HOT 2
- Working geofence repo HOT 3
- This is not working in cordova 8 Please add support for cordova 8 HOT 4
- XCODE 11. Swift version not supported HOT 4
- Notification not showing in Android 9+ device
- cannot find symbolimport android.support.v4.app.NotificationCompat;
- Found the mobile hotspot blocked this plugin notification.
- TypeError: Object(...) is not a function at Geofence.initialize HOT 2
- Plugin not creating Local notifications even when app is open
- xamarin Support
- Not able install and use the geofence plugin, following is the error am getting
- Not compatible with Cordova Android 11 due `android:exported` error HOT 1
- Maintained repo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-geofence.