How to build Flutter project with 2 apps? - android

I have 2 Flutter apps - one for user and one for seller.
Right now there is "Seller" button on User app which redirects user to Seller app on Google play/Apple Store if Seller app is not installed, if it's installed, it opens up Seller app
I want that button to open my Seller app directly, without user having to install it seperately.
Is it possible for me to integrate Seller app inside of User app? So there is only one apk file, main app that opens up would be User app - and clicking on button "Seller" it would open up second screen (Seller app)
Thanks a lot!
I don't know what possible options are there to merge 2 Flutter apps in one project..

Not sure about it. A solution could be integrating the Seller project as a package inside the User project, but this will require some work to do. It surely isn't plug and play.
Having the second project as a package will let you call the code inside and navigate to the seller pages from the main one. Just create a package in the User project and move the code from Seller project inside it. For sure you will need to make some changes, dependencies probably, if you have permissions inside the manifest and stuff like that. Give it a try.

Use a combination of flavor and target to build and publish different versions of a single code base.
flutter <command> --flavor user --target lib/main_user.dart
See Creating flavors for Flutter for details.

Related

Publishing Android Instant App: Domain is used by another app

I'm trying to publish an Instant app but got this error on review and release page.
Your Instant App APKs contain the domain 'xxx.xxx.com' that is already in use by another app.
If I remove the intent-filter that contains the domain, then this error will go away. So looks like it's the only issue in my app bundle.
However, that domain is not used by any other app. Also, I set up the assetlink.json file correctly, as I'm able to pass the test in App Links Assistant.
What are the other possibilities that Google may report this error to me?

Send iPhone app without user looking at source

I was wondering if it was possible to send someone an iPhone application without them having access to the source code? For example lets say I create an app that i do not want to put on the app store (or cydia for that matter), and I want to send this application to someone (via email, usb, etc) without them being able to look at the source code. I don't see how I could do this when they would have to load the application onto their device via Xcode.
p.s. I see this being applicable to android applications also
As Choppin Broccoli already said, create an Ad Hoc Provisioning profile in the provisioning profile section at http://developers.apple.com.
In Xcode, make sure you set your build destination to "iOS Device"
In Xcode, click Product->Archive. The organizer window should pop up. If the Archives tap isn't selected, select it.
Click "Distribute".
Select "Save for Enterprise or Ad Hoc Deployment. Click next.
From the list of provisioning profiles on the next screen, select the same Ad Hoc profile that you created in step 1, and click "Export".
Select the location to store the file, then click "Save".
You can send that IPA to the user to install via iTunes.
What #Katim Languedoc said wad pretty accurate.
In Android you do the same but the file extension is .apk.
Here is a post about how to make one:
You would have to create an Ad Hoc version of the app and send them the .ipa file for them to install via iTunes.
You can also use services like TestFlight, but they just make the process described a little easier for your install-person (letting TestFlight handle the details of the actual install instead of having do it through iTunes). The fact that you have to do a build with an ad-hoc distribution profile is the same.

Uploading same App in two developer console Accounts

Suppose I have two developer console accounts.
If I want to upload same apk in both accounts, then whether both apps works fine and ad will serve properly or is there any problem ?
You can't upload same .apk from two account or the same account.Google check out the packageName and version for this .So if you want to upload same .apk from two account the you have to change the package name
Should work fine as long as the package name of both the apps are different.
Play store requires each app to have a unique package-name to identify each app individually. ( Just like we are assigned unique roll numbers in exam :) )
Here is what you can do
1) You create a new project with same source code and change package-name. ( Easy way)
2) Create a new project. Add existing project as library to it. Create a dummy activity in new project which just calls you main activity. This way you will not have duplicate code.
But I will not advise that because then your app will be competing with itself. Your downloads will be divided between two independent app which will result in lower chance of your app to be discoverable.

Is it possible to use the Facebook mobile SDKs for only mobile app install ads?

I am not currently using Facebook's Android SDK in my Android app, and I only want to integrate it enough to capture installs via Facebook Mobile App Install Ads.
The documentation describes the need to "[c]omplete your Basic page under App Settings." If I enter my app's package name--and only its package name--I get an error:
You have specified Package Name, but you did not specify Class Name. Launching a native Android application requires both.
I don't want or need my app to be launched, do I? I only want to track conversion rates of ad clicks to app installs (and runs). The only way I can get the Promote link to show up on the left is to supply values for Class Name and Key Hash and set Facebook Login to Enabled. Is this really necessary?
Yes, it is necessary to fill out those basic details to use our SDK, however, those fields are only used for login authentication via fb - which is the most popular use case for our SDK. Your app will not be launched or anything like that if you supply those fields. For your case, just fill them out and leave it as is and you will be able to run ads without worrying about anything else.
The API requires these fields. Although in my experience it doesn't launch your app. It is merely used for the credentials in the development side of the Facebook integration in www.developer.facebook.com
Hope that helps.
RF

Install apk file via code forcibly

I have a scenario where I have to install an apk file through code and I dont want the user to have option either install or cancel it. For ex, I want to create an app similar to the android market. In that app, I will display list of my applications and display an install button for each app. When the user clicks the install button, the app should be installed directly without asking the user to install or not. I found a link which have a method installPackage in PackageManager. I am getting compilation error when I use it. It seems that it is remove from the android framework.
Is there nay possibility to do this ?
thanks,
Senthil

Categories

Resources