Comments (7)
Hi @harshvb7, what is the expected result after saving? Or is it not saving the reminder? Also, be aware that saving a reminder is async, so using calling dispatch after saveReminder like this is not guaranteed to work. This library uses events for callbacks, but I plan to update it with promises soon.
from react-native-calendar-reminders.
The 'dispatch' is only to trigger the add reminder form page to pop out and go back to the list.
After saving on debug:
Because of the remindersChanged listener added, the list gets a new item added.
After saving on Release:
Nothing happens. The reminder is not created. But if I go in the iOS Reminders app and create a new reminder manually and come back to the app, it adds shows new reminder in the list.
Everything works on the release module, including editing , deleting, etc. It just doesn't work for saving.
Is there anything to set in Xcode. My app deployment target is iOS 8.0.
Thanks
from react-native-calendar-reminders.
I'm not sure what is causing the release version to not save these reminders. If reading the reminders from the store works, it doesn't sound like a permissions problem. You could try to optimize the debug build similar to the release build, and check if any errors surface.
from react-native-calendar-reminders.
Ok,
I ran the release version on the device by editing the scheme from debug -> release.
Now while saving, if recurrence is passed the reminder is saved with 'Invalid Date'.
Without recurrence the app just crashes.
Another weird thing is that.
On debug:
Saving works if remote JS debugging is ON
else it gives this error:
JSON value '2016-10-07' 7:30:25 pm +0000' of type NSDate cannot be converted to a date
from react-native-calendar-reminders.
Looks like React Native might be having a hard time converting your start and due dates to an NSDate. Try using a Date instance as the value for the date properties.
from react-native-calendar-reminders.
Ok, my fault. Looks like there was a bug around the authorization. Should be fixed now if you want to give it another try.
from react-native-calendar-reminders.
I fixed it by using date string instead of date object.
I was passing the javascript date object. I changed it to string of format '2016-10-01T09:45:00.000UTC' using moment js and it worked.
from react-native-calendar-reminders.
Related Issues (20)
- Module RCTNativeAppEventEmitter is not a registered callable module HOT 5
- is there any plan to implement calendar events accessing functionality HOT 1
- Errors when trying to fechAllReminders HOT 2
- Support to check if an item has been 'marked done' HOT 4
- Request for simpler function to update existing reminder HOT 2
- Recurring reminder marked as done changes time of next notification. HOT 9
- Fatal Error on saving reminder with custom id HOT 3
- how can I fix the"RCTBridgeModule.h not found"? HOT 1
- Should change the npm command to include --save HOT 1
- Unable to create alarm HOT 9
- Module breaking android release build HOT 3
- Can't create customized recurrence reminders HOT 4
- Error installing library HOT 1
- Lots of warnings in iOS 10 Xcode project when building HOT 1
- No calendar has been set HOT 1
- Not Working for android HOT 1
- is it possible to bind this library to agenda component in react-native-calendars library ?
- undefined is not a function (near '..._reactNativeCalendarReminders.default.saveReminder...') HOT 1
- Manual Linking HOT 2
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 react-native-calendar-reminders.