Tom Coomer
Tom Coomer

Reputation: 6547

Get string from Parse.com iOS 8 Today Widget

I would like to retrieve a string from Parse.com in my notification centre widget. I have this code Parse.setApplicationId("appId", clientKey: "clientKey") in the widget's viewDidLoad but there is an error. The error says:

Use of unresolved identifier 'Parse'

Where am I going wrong?

Upvotes: 0

Views: 178

Answers (2)

SafeFastExpressive
SafeFastExpressive

Reputation: 3807

Yes, you need a bridging header for the extension as well as the app. Also you need to call Parse.setApplicationId() when your extension is loaded just as you do when your app is launched.

Upvotes: 0

Kris Gellci
Kris Gellci

Reputation: 9687

Make sure that you have added Parse and all needed frameworks to the widget target. You may have added them to your apps target when you dragged them in but they need to be added to the widgets target as well if you plan on using them in there,

Upvotes: 1

Related Questions