2

I am trying to implement deep linking via this tutorial:

When i copy the first code block in, i get errors related to the declaration of

var deepLink : RemoteNotificationDeepLink?

most of which can be traced back to

Use of undeclared type 'RemoteNotificationDeepLink'.

There are no comments on the tutorial and this is the only good tutorial i have found thats not in Obj-C. Either a solution to this error or another tutorial would be much appreciated

Community
  • 1
  • 1
rohaldb
  • 589
  • 7
  • 24
  • 1
    I think you're not finished to read the tutorial, if you download the final project and you continue reading you'll see the declaration of the class `RemoteNotificationDeepLink` – Victor Sigler Feb 13 '16 at 01:16
  • you are right. If you copy the rest of the code it works – rohaldb Feb 13 '16 at 01:41

2 Answers2

1

Your issue is that you have not defined var deepLink : RemoteNotificationDeepLink? from the tutorial. That is in the second code block. All you need to do is finish the tutorial before you try and run it too see if it works. So you are trying to use it but your application does not have any context of what it is.

Check out this deepLinking explanation from another question Confused with IOS Deep linking

let me know if you are still having issues.

Community
  • 1
  • 1
Dan Leonard
  • 3,325
  • 1
  • 20
  • 32
0

If you proceed to copy the remaining code blocks and follow the instructions, the solution is presented

rohaldb
  • 589
  • 7
  • 24