Comments (2)
Yes, I think it's is possible to be implemented. We won't be able to use signals to connect though, as it doesn't work with Android, so we have to use callbacks, something like this:
func _on_share_result(success):
if success:
give_some_reward()
This way it should work on both platforms (Android & iOS).
from godot-share.
As a result of my research, I've discovered that there is no reliable way to return whether the data was shared or not.
Using Android's onActivityResult depends on each app (Twitter, Gmail, Telegram, etc.) to send the signal of completeness of the action and this varies greatly. By testing I did half of them report this value as expected. So I will not implement this feature for now.
from godot-share.
Related Issues (17)
- sharePic function not working on Godot 3.0.2 and Android HOT 10
- ipad Share does not work HOT 2
- Help with implementing a IAP module on IOS HOT 3
- Android build issue (androidx.core.v4.content does not exist) HOT 6
- iOS recognize the module but doesn't show HOT 1
- Android build issue 3.x
- Sharing custom files?
- iOS build issue Godot 3.x
- Share for iOS for Godot 3.5
- godot 4 integration
- Can you share sounds? HOT 1
- Compiling for Android HOT 10
- share HTML document request
- Unable to run in iOS? getting errors HOT 5
- Compiling for Android issues HOT 2
- Fail To Run In Android 6,7 HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot-share.