pusher / push-notifications-swift

Swift SDK for the Pusher Beams product:
https://www.pusher.com/beams
MIT License
34 stars 24 forks source link

Use of unresolved identifier 'Instance' #37

Closed siempay closed 6 years ago

siempay commented 6 years ago

I just installed it as in the README but I get this Use of unresolved identifier 'Instance' in the @objc public final class PushNotifications: NSObject

I use latest xcode 9 with swift 4 for and iOs app

lukabratos commented 6 years ago

Hi

Which version of the SDK are you using?

We have released version 0.10.0 2h ago and it has some breaking API changes so some docs might be outdated. Here's up to date example that works with 0.10.0: Link.

Let me know how it goes 👍

siempay commented 6 years ago

No, the error is coming from the pod itself, not from code I added. I mean a fresh installation is show error capture d ecran 2018-02-13 a 16 34 56

lukabratos commented 6 years ago

@siempay thanks. I've identified the issue. I'll let you know once it's fixed.

siempay commented 6 years ago

I went back to 0.9.2 and its working fine a little question: where can I get this "YOUR_INSTANCE_ID" that goes here self.pushNotifications.register(instanceId: "YOUR_INSTANCE_ID")

lukabratos commented 6 years ago

Hey

You can create Pusher Push Notifications instance here: https://dash.pusher.com/

lukabratos commented 6 years ago

Hi @siempay

Can you try and integrate the version 0.10.0 again? Issue should be resolved. Use: pod install --repo-update

Let me know, Luka.

lukabratos commented 6 years ago

This issue was resolved in version 0.10.0.

lukabratos commented 6 years ago

Hi

You're probably using version 0.10.1, please refer to the updated docs here.

Issue related to Instance was resolved in version 0.10.0.

siempay commented 6 years ago

ah ok I got theme

sauryatechnologies commented 5 years ago

I am getting error on InstanceID: Swift Compiler Error: Use of unresolved identifier 'InstanceID'