-
Notifications
You must be signed in to change notification settings - Fork 93
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
Could this be used with Expo Prebuild? #121
Comments
This sounds very promising. Unfortunately, my Xcode knowledge is limited, so I'm not sure if I can help you. But please keep us posted, and I would be happy to help you test the plugin. |
It's been a while since i've dealt with Expo but certainly looks like something we should support. Not sure when I'll be able to look into this myself but it should certainly be on the roadmap - @markymc do feel free to have a crack at this yourself if you have the time - and feel free to reach out for support |
OK thanks guys. To be honest, I worked out my build issues so my need for this is less immediate now. However, I would be happy to work on this when I have more free time. I'll let you know if/when that happens. |
This would be awesome. |
Hi, I've created a initial PR for that thing, you can check it here |
Wow, thank you so much, @CristiCeban! I won't have a chance to try this out for a while unfortunately, but I'll try to if the PR is still open when I get a chance (although if we're lucky it will be merged soon!). |
Thank you so much @CristiCeban, if I'm lucky I will be able to try it out during the next few days. |
@CristiCeban sorry if this is a basic question, but can I test the example using
in my Generally, will this plugin work by just referencing its npm package? |
@yolpsoftware you'll need to build a local copy of the branch using |
Hello, I don't really know about Generally, will this plugin work by just referencing its npm package? |
@yolpsoftware I checked "import" issue, the .d.ts file was not included in the build (it worked, but ts was yelling :) ), I fixed and updated my pr. Please be sure to test with latest changes. I also updated example app to use different icon (the icon before was slightly smaller that 1024 px, so xcode was yelling in another place at me), should be fine now |
Thanks guys. I tried to add this to my existing Expo project (thought this would be a better test than to just re-compile your example project). No success so far. This is what I tried:
Any hints welcome, but if these errors have nothing to do with the fork, I'll just wait until the fork is merged. |
@yolpsoftware Hey, could you please retry ?
[8:50:17 PM] Starting compilation in watch mode...
[8:50:18 PM] Found 0 errors. Watching for file changes.
"plugins": [
[
"react-native-watch-connectivity",
{
"name": "watch",
"bundleId": "com.expo.watch.example",
"displayName": "EAS WATCH",
"sourceDir": "watch",
"deploymentTarget": "7.0"
}
]
],
|
@CristiCeban thanks for the detailed instructions! (edited: I was able to solve the following problem:) On step 16 I get the following error: This is my plugin config:
I changed it to
and started again at step 10, which resolved the problem. So I was able to build it for the Simulator (on which it said there is no Watch paired). As soon as I have a debugging device available, I'm gonna try it on that, but I'm a step closer. |
@yolpsoftware Yes, bundleId is basically the bundle id of a iPhone app (which is the iOS app in this case) I need it for the WKCompanionAppBundleIdentifier info.plist key. P.S your watch bundle id will be now bundleIdentifier.watchkitapp (Maybe improvement for the future??? ) |
@CristiCeban thanks again for all your work. I was now able to fully build the app in Xcode. However, due to the usual connection problems between my test device and Xcode, I wasn't able to test the app despite trying for several hours (Xcode always complains about "Transport error", see for example https://stackoverflow.com/questions/64974291/xcode-error-failed-to-prepare-device-for-development). So I tried to instead build it for Testflight, so I could test it that way. This worked insofar as I was able to create an archive of the project in Xcode. When submitting this archive to Testflight, I ran into the following error:
I then went to the App Icons (Watch target --> General --> App Icons), clicked on the arrow and added an icon for the watch target. But this didn't help, same error. So I opened the archive that Xcode just built and looked at the Info.plist of the watch app. Seems that this file gets generated somewhere. It does not change anything if I add an icon to the Any idea? Did you manage to build this for Testflight? |
@yolpsoftware Hey, sorry for the long reply About the generated .plist file, yes, that's right, it mainly consists of 2 things, the .plist file generated from the merge operation between the .plist file in the Did you manage to build this for Testflight? We have a couple of app in production with generated watch target using almost the same code like the one from my pr (but not in expo content, we have something custom for injecting it, so without any expo stuff in there). They are used by a couple of millions of user and seems to work fine. |
@CristiCeban sorry for not seeing this! Maybe this would be a helpful warning in the library, for everyone who is as dumb as me. When the But now it worked! I was able to submit the app to Testflight, and everything worked fine! So I'm happy to give my OK for the PR. Thanks again for your work!! Looking forward to testing it with EAS. |
Hi all, i've been following this thread and appreciate the level of detail your comments are. I'll follow these instructions to learn how this can be added to my expo app. |
I see that more people want to use and test this integration. The author of this package I don't know if he still maintains it, can do release, etc. For this reason I made a fork and published the package as CC: @JeffOtano @walterholohan @mlabenski P.S |
Hi, first of all, thanks for your work on this library. I've found it very useful already.
I've been facing some build problems with my ejected Expo project recently, and came across Expo's recent suggestion to use Expo Prebuild instead of ejecting.
I was wondering if this library might be compatible with a bit of work?
Off the top of my head, for iOS support we'd need to:
I'll try to look into this when I have time, but thought I'd get a conversation started in case anyone else has been thinking about it.
EDIT - this might have some examples to follow perhaps https://github.com/bndkt/react-native-app-clip/tree/main/plugin/src
The text was updated successfully, but these errors were encountered: