Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Send button does not work - with Messages on Landscape mode #127

Open
yosun opened this issue Sep 16, 2021 · 8 comments
Open

Send button does not work - with Messages on Landscape mode #127

yosun opened this issue Sep 16, 2021 · 8 comments

Comments

@yosun
Copy link

yosun commented Sep 16, 2021

Description of the bug

Send button does not work - with Messages on Landscape mode

Reproduction steps

Share a texture and a string message from UnityNativeShare API to Messages

Platform specs

Please provide the following info if this is a Unity 3D repository.

  • Unity version: 2020.3.12f1
  • Platform: iOS 14.7.1
  • Device: iPhone 12 pro max
  • How did you download the plugin: from github

https://www.youtube.com/watch?v=GLgQIoLaegM

@yosun yosun added the bug label Sep 16, 2021
@yasirkula
Copy link
Owner

Thanks for the video! Can you see any related logs in Xcode console? Does omitting texture or message make a difference?

@yosun
Copy link
Author

yosun commented Sep 17, 2021

I think it has to do with perhaps the length of the string? It seems to work for shorter strings.

Xcode afaik does not record anything since the send button isn't successfully usable

@yasirkula
Copy link
Owner

Can this be an iOS issue? Could you share a content from WhatsApp to other apps with the same text that you are using with Native Share?

@MGGranny
Copy link

I ran in to the same issue with a string with 111 characters. Sharing the same string in WhatsApp works.

@yasirkula
Copy link
Owner

Does sharing the same string from WhatsApp, Facebook or Twitter to Messages work properly?

@MGGranny
Copy link

  • If I share the same string from WhatsApp to Messages it works normally.
  • I can't figure out how to share from Facebook/Messenger to another application.
  • I don't have a Twitter account so I can't test that, sorry.

@yasirkula
Copy link
Owner

@MGGranny Which NativeShare functions are you calling to initialize the shared data? If you're calling SetSubject, can you omit it and see if it makes a difference?

@MGGranny
Copy link

Here you can see the setters I use before the Share call:

		new NativeShare()
			.SetUrl( url )
			.SetSubject( title )
			.SetText( text )
			.SetCallback( ( result, target ) => callback?.Invoke( result ) )
			.Share();

I tried removing SetSubject, SetText and both of them, but the same bug still happened when sharing to Messages app on iOS 15.

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

No branches or pull requests

3 participants