-
Notifications
You must be signed in to change notification settings - Fork 9
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 Intend #10
Comments
@luke- could you elaborate the goals for this issue? |
@PrimozRatej I think we need to enhance the HumHub application a bit for this. It's mainly about sharing a photo or text with HumHub. After one click, a space selection should be displayed. This probably has to be implemented natively (not WebView). |
Current impl. We now obtain sharing intention of the device for images, I would recommend implementing a pop-up on the website using Web Message Channel where the base64-encoded image will be passed in. This way, all the implementation can be done on the web side. |
@PrimozRatej Thank you, I will check that. Maybe we can then use the same solution here as for the PWA. (Not existing yet) In the long run/in a later app version we should probably still develop a native selector of the HumHub Share target. |
@PrimozRatej Can we disable this until we finished the work on the HumHub side? |
Shure will disable the feature for now. |
We implemented this for our in-house app. Might be an idea for this app? As users might want to message an item to individual teammates as well as posting to spaces... |
Good point. Probably it's useful to have one "HumHub" entry and then a dialog to select:
|
Could this be extended to be able to add other options as well? Such as usage for other modules? Post -> Content Container Or something a little more complex like the following; Content -> Module Container -> Space/Profile/Custom |
@luke- do you think implementing this feature would be enough to apply again for Apple Store? |
This is definitely one of the next topics on the app development agenda. |
Current suggestion on how we could implement this for both Android and iOS: Sharing intents are defined by three components:
Action trigger: Intent with three action triggers. Potentially, we could use a standard intent without action triggers and make this decision within a native popup or directly inside the WebView using JS channels. We can also define custom icons and names for each action trigger. Handle action: We should also decide whether these action views should be implemented at the native level or within the specific Humhub web frontend (FE). If we decide to implement this at the native level, the mobile app would need access to the instance API (e.g., when the user logs in via WebView, the access token is passed back to the app level). Alternatively, if we choose to implement this in the Humhub FE, the mobile app would simply pass the @marc-farre , @luke- thoughts? |
Because we can potentially have many places in HumHub where files could be shared, and to make it clearer that we are sharing on HumHub, I would be in favour of the first idea: The modal box could be: Share to:
We shouldn't use API because:
The user will then have to fill the form (e.g., if a post, add some text) and submit. That's "easy" for the Profile stream and new Conversation. Do you think it would be possible for the app to have an updated array of Spaces and enables Modules(1) in each Space? This way, after clicking on "a Space...", you could ask:
@PrimozRatej @luke- What do you think? (1) Only modules allowing to create new Space content and having the possibility to join files to it. |
@PrimozRatej the app also must get the list of allowed file types from HumHub configuration, and max upload size: |
@PrimozRatej The app should compress images, audio and video before sending it to HumHub. |
TBD
The text was updated successfully, but these errors were encountered: