-
Notifications
You must be signed in to change notification settings - Fork 23
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
Share invite links through AirDrop #561
Comments
Example code from Apple: Doesn't look complicated. I expect 10 - 20 hours for this and #562. |
Any thoughts about a custom URL Scheme? zomnb:// (Zom "nearby") or something like that? |
Sounds just fine. |
I suppose this should go here? @N-Pex, could I have a short introduction, so I don't need to scratch my head about how all of this works together? As I understand, these files play a role? https://github.com/zom/Zom-iOS/blob/master/Zom/OTRResources/Interface/Base.lproj/AddBuddy.storyboard |
@tladesignz Correct, there's also a similar ZomNewBuddyViewController used in Onboarding.storyboard. The UI contains a toolbar where you can add a fourth button, "AirDrop" or similar (just copy one ot the others). THEN the icon needs to be set (it's a character from the material icons font, have a look at ZomNewButtonViewController:44). Yes, it's overly complicated, but it's implemented this way because 1. we wanted to use icons from the font and 2. The strings must not be "attributed strings" with the icon included in the storyboards, because then the translation scripts would be confused... |
Ok. So there already is the "Share" button, which opens the system's "share" menu. (See screenshot above). What we should do instead is described here: If we want to send a specific iOS-Zom URI with its own scheme, instead, that could get quite confusing. On the other hand: We will have a server roundtrip and there need to be changes on the server. |
Currently, the link to share is like this: Which in turn links to this: 2 things here:
Now, let's see how many spambots want to become my friend. :-) |
Actually, we already support AirDrop. |
We need to add "nearby" friend adding, and it seems like there is an easy API to do so, from iOS to iOS:
https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html
The text was updated successfully, but these errors were encountered: