Creating a basic account system SDK using flutter - flutter

I have serveral Goals:
Add the user in the "Users and Accounts" section of AOSP Settings
Here is a little mindmap of how the process will work
I need to get an effect like google's sdk, where a flutter library calls the SDK app, then, if it needs to login, it redirects to the SDK login page and logins. Then it store the data and put it in the users and accounts section. Then, any app can call the app to get the session ID(The invoke process may include allow/deny). Thanks!

Related

Facebook - Kochava (MMP) integration issue with SKAdNetwork

I have an a flutter app integrated with Kochava, where Kochava is selected to receive SKAdNetwork data. The app is also setup in facebook so that install campaigns can be run. However, when I select it in campaign manager, I get "The Mobile Measurement Partner app used to configure events for this app doesn't currently support SKAdNetwork events. To run iOS 14+ campaigns for this app, choose a different app event connection for SKAdNetwork in Events Manager.".
In the Events Manager, Kochava is configured as the source of SKAdNetwork events (and the configuration screen is "all green"). Also, on the dashboard I can see "fb_auto_published" app install event from MMP and the app screen shows a date of "last mobile app install" (those are all likely originating from iOS14+ live testing).
I want to avoid integration with Facebook SDK and having Facebook as the recipient of SKAdNetwork data (mainly because it feels like a less clean setup with MMP getting some events and Facebook some - while other networks like Twitter are also integrated).
I have tried replicating this setup under clean ad manager and setting up new app in Facebook (no change - still doesn't work). The Kochava-side configuration has been reviewed by Kochava team and looks good to them. Facebook's business support directs me to developer support but only after "recommended" step of Facebook SDK is completed (which I am a bit reluctant to do).

How to Verify User is using TWA as opposed to PWA

I'm looking to launch a single web app that works as a PWA for web users and a TWA for users wanting to download it from the Google Play Store. The app includes a yearly subscription so I'll need to implement separate payments methods for the PWA and TWA in order to comply with Google Play policies.
With this being said, is there a way to identify with JS if the user is viewing the PWA vs the TWA app from the play store? Perhaps something unique to check in the global window object?
Or, is it recommended to publish a whole new version of the app used for the TWA to a different URL that only supports the Google Play payment option.
Any info would be great. Thanks in advance.

Launch Facebook messenger Share extension from my iOS app

I'm developing an iPhone app and I want to launch Facebook messenger share extension from when user wants to send a photo to one of his friends.
How can this be done?
I was able to use FBdialog, but this takes the user our of the app and I don't like this option.
Thanks.
Your application must have received permissions by the user via the access token (publish_actions). Otherwise, you'll get into the fast-app-switch, which displays a separate page.
Once a user gives your app appropriate permissions, then your FB action can be seamless, without switching across.
In a nutshell, you should implement a "login" method that users "login" to your application using Facebook (more specifically - gives your app permissions to access certain parts of their FB profile), and then you should be able to use native SDK capabilities.
If you use UIActivityViewController as long as the shared objects (NSString, UIImage, etc) are compatible it should show up automatically on the share list sheet in iOS 8.
The user may have to enable it by pressing "More"

Do I need to get app permissions approved before building my app?

I'm having an issue where I'm wanting to build a web app - but until I can have it built to show Facebook, they won't give my app permissions (specifically manage_pages and read_page_mailboxes).
So, obviously my code for this doesn't work at the moment.
Is there a sandbox mode where I can write and test all my code, then send it into Facebook submissions for full approval once it actually works?
As a developer, you can use permissions that have not been approved to build your application. You can also create test users from the App Settings page to create users to test your application - all can use unapproved permissions.
Once your application is built, you can then submit it to Facebook to get the permissions approved for end-users. Just make sure you are using the Developer account or a Test user account to test your code during development.
You'll see a notice if you're using a permission that isn't approved.

Facebook iOS SDK - GitHub - Cannot switch back calling app

According to the GitHub,
If the app is running in a version of iOS that supports multitasking, and if the device has the Facebook app of version 3.2.3 or greater installed, the SDK attempts to open the authorization dialog withing the Facebook app. After the user grants or declines the authorization, the Facebook app redirects back to the calling app, passing the authorization token, expiration, and any other parameters the Facebook OAuth server may return.*
My application calls authorize: permissions: delegate: and my application is suspended and Facebook application is launched and authorization is asked. After the user allow or disallow, the Facebook applications stayed on NEWS FEED (not returning to my application).
Questions:
Is it possible to authorize or logged-in and returning to my application?
How can my application check whether the authorization and logged-in is done and no need to re-do again?
I found this.
During single sign-on, the Facebook application isn't redirecting back to my application after a user authorizes it. What's wrong?
Make sure you've edited your application's .plist file properly, so that your applicaition binds to the fb[appId]:// URL scheme (where "[appId]" is your Facebook application ID).
My Application can be switched :)
Thanks all
After struggling for long time finally got a solution for this problem, I dont its correct but its working like charm for my App:
go to developer.facebook.com
Select your app from list (App which app is your are using in URL scheme)
If your app is selected as native app then it will ask for bundle identifiers
provide him bundle identifier by using which you are building your app
if your using wildcard bundle identifier then provide like com.product.abc otherwise provide full bundle identifier.