Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCode guideline installation problems. #33

Open
JoseWalker opened this issue Sep 12, 2016 · 8 comments
Open

XCode guideline installation problems. #33

JoseWalker opened this issue Sep 12, 2016 · 8 comments

Comments

@JoseWalker
Copy link

In the installation section for XCode says "File > New > Target > Apple Watch: Language ObjC, Select Glance and Notifications > Finish > Activate" that is no longer valid with the latest XCode.

This is absolutely necessary? how it works in the new version?

https://github.com/Telerik-Verified-Plugins/AppleWatch#xcode

@JoseWalker
Copy link
Author

@EddyVerbruggen is nice to have a chat with you man! do not regret anything my friend! you do what you think is best, even if my comments are sharp, Who cares?!

I've seen your code and it's very nice, and shows your expertise on the matter.

At the end of the day Time is Money! says almost every theory in economy. I didn't know you have 1 day time difference. Point on my favor.

I do play reverse psychology because people mostly feel touched by bad comments, you are one of those though. I've managed people for very long time, and I just played it.

Again, at the end of the day, the message is still the same: WE ARE EAGER TO USE YOUR PLUGIN! HELP US OUT!!!

Thanks!

@mgrubinger
Copy link

@JoseWalker, I just had the same issue. Hint: there's a branch called

cordova-cli-watchos2

that should solve your problem with configuring xcode with watchkit2.

But, since in watch os 3 Glances disappeared the plugin seems to display all the glances from the storyboard by default. Trying to find out how to dynamically show/hide them at the moment...
Hope that helps.

btw, I don't get your aggressive style. not very constructive.

@ghost
Copy link

ghost commented Oct 24, 2016

Hi @mgrubinger
Were you able to successfully run the APIs from watchos2 branch?
Tried it, the watchos simulator stays blank.

@mgrubinger
Copy link

Hey @leouze,
yes, I managed to get it up and running with the watchos2 branch. Simulator shows all the glances from the storyboard. Make sure to uninstall the cordova-plugin before adding it from the watchos2-branch again.
Did you set up the profiles etc for xcode correctly?

@ghost
Copy link

ghost commented Oct 25, 2016

My God, thank you @mgrubinger for the response.

Yes, I do uninstall the cordova-plugin-applewatch first and add the watchos2 branch again.
And yes all the profiles and app groups are setup correctly.

When I am trying to init the plugin, it calls success on the success callback.

applewatch.init(function () { 
console.log('Success')
});

Now when I try to call

var payload = {
  'label2': { // optional, max 2 lines
    'value': 'UI built @ ' + new Date(),
    'color': '#FFFFFF',
    'font': {
      'size': 8 // default 12
    }
  }
};

applewatch.loadAppMain(payload);

It returns this error on Xcode and no response on Watch(Simulator):

[WCSession _onqueue_notifyOfMessageError:withErrorHandler:] errorHandler: NO with WCErrorCodeMessageReplyFailed->WCErrorCodeNotReachable

Any ideas pleaseee?

@mgrubinger
Copy link

Hi @leouze,
don't know if you figured out already, but you have to have these two callbacks defined:
applewatch.callback.onLoadAppMainRequest
and
applewatch.callback.onLoadAppDetailRequest

Just assign a empty function until you acually need it to get rid of the error.
Hope that helps.
Cheers.

@ustincameron
Copy link

@mgrubinger any progress being able to hide various elements or getting this working for watchOS3/4?

@mgrubinger
Copy link

@socca1157 sorry, I can't help you any further as I haven't worked with the plugin in the meantime. good luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants