How can I import iPhone notes to my app? - objective-c

Is it possible to import a note from iPhone notes app to my app? I googled a lot to get an idea about it. Nothing helps. Can someone give any idea about it?
Thanks in Advance

Third-party apps do not have access to the notes database. There is no public API for accessing the notes data.

You can try using a flow for syncing apps (eg. ifttt.com).
Create a rule that says "If a new note has been created (if a Gmail message has the label 'notes'), forward it to my db."
The solution is very clunky, but it's a starting point.
You could then find a way to scale this for your app.

Related

React-admin | Easiest way to warn user of a newer available version

I have a react-admin app where we are making frequent changes.
Is there an existing plugin or a way to detect a new version of app and provide user with a toast to refresh the application so that they are working with latest version?
If not with react-admin, is anyone familiar with a way to do this easily with react?
I have found some manual way to do this in following places but I am asking here in case there is an existing package or a more elegant solution that I can leverage directly.
How to force update Single Page Application (SPA) pages?
https://medium.com/#kellyrmilligan/create-react-app-let-your-users-know-when-the-app-has-been-updated-with-a-notification-21335d85481c
Any help is appreciated even if its, nothing exist and I should just hand-roll.
Thanks for reading.
This is not the responsibility of React Admin to handle this kind of issue.
You can think of RA as a simple React component that helps you define an admin.
Hence, RA doesn't provide any helper to manage code update or something similar.
You have to implement this refresh system by hand, and your links are a good start for that.
With the serviceWorker you can do that :
https://github.com/marmelab/react-admin/blob/master/examples/tutorial/src/registerServiceWorker.js
But i don't know why in the demo the service worker is not used ?
https://github.com/marmelab/react-admin/tree/master/examples/demo/src

How to fix Feature not enabled problems

I currently have an issue that whenever I connect my MapBox map to the Directions API, an error is returned which says '{"message":"Feature not enabled"}'.
I have looked around and have not found anywhere where I can enable this feature, and would like to know if there is a way that you can do it.
Thanks in Advance,
Chris
https://www.mapbox.com/developers/api/directions/
First line:
This API is a preview and may be changed or removed at any time. Contact us to get testing access to this API.

Is there any way of knowing how many NSUserNotifications there are in NSUserNotificationCenter?

Is there any non-private way of knowing how many notifications there are in the Notification Center (NSUserNotificationCenter) in Mountain Lion? Not just notifications from my app, but from all apps.
So, to sum things up, what I want to do is to retrieve the number of notifications displayed here:
I've tried to search around, but I can't find information about this. Any ideas?
Thanks in advance!
There is no public API to access notifications from other apps. The best way to access this information is to read the sqlite database located in ~/Library/Application Support/NotificationCenter/<UUID>.db. Note that this will only work if your app is not sandboxed.

How to set wallpaper for lock screen in iPhone or iPad

I have gone through many of similar post that I have asked here. I have understood that there is no public API for doing this in iOS devices and if we use the private API for this purpose, apple will not accept it too. But I have found an application in itunes which does the same feature.
Here is the link :
http://itunes.apple.com/us/app/sticky-notes-hd-with-bump/id364874025?mt=8
If apple do not support this, how this application is in Appstore. Then they may have did this in some other way. So I hope this feature can be implemented somehow.
Does anybody have any idea regarding this.
Thanks in advance
Thats impossible to do.
Have you bought the app you referenced to? Did you see it?
The app that you reference generates a picture that you -- by hand -- need to set as lockscreen/wallpaper.
One thing that goes in that direction is the MPNowPlayingInfoCenter; it allows you to set what's being shown in the "now playing" info on the lock screen, but that's about how far you will get.

Not getting the pop up from App store for In-App-Purchase

I am working on application in which i am implementing In-App-Purchase,On buying the product through my application i can fetch all the information regarding the products in my console, but the problems occurs where i am not getting the pop-up from App Store which shows all the information to buyers. I cannot figure out the problem. Please suggest some solution for this.
Thanks.
Apple's IAP backend (test mode) has been up and down over the last 5 days, mostly down, there's been no official confirmation of the outage, just check twitter for similar complaints.
need code.. or follow troy brant's awesome tutorial
http://troybrant.net/blog/2010/01/in-app-purchases-a-full-walkthrough/