Saturday, October 12, 2024

How to Solve Warnings Cleartext traffic allowed for all domains?

The Cleartext traffic configuration is required for the app to run on http and https protocols, the cleartext traffic warning is not an error, but a warning which can be ignored.

But, if you want to solve or remove the warning, it's also can be removed, but with consequences and with note that the app will only run on https protocol, if you use http protocol, the content will not be able to be loaded from the server to the app.

To remove the warning, in the Android Studio project, open res/xml/network_config.xml, then, in the base-config cleartextTrafficPermitted configuration, change the value from true to false, by using false value, the warnings message will be disappear when you publish the app on Google Play.





Sunday, June 30, 2024

Single Ads Sdk

We offer a new option for Solodroid project users who want to monetize apps with certain ad networks as an alternative if AdMob experiences problems such as being restricted or even banned. In this case we use the single ads SDK format as a backup ad or even make it the main ad. By using a single ads SDK, the advertising SDK is used only on that ad network SDK so that the size of the aab/apk file when built is minimal or smaller and can minimize problems in publishing to the Google Play Store related to SDKs from other ad networks that may not or do not comply with policies.

Below are several single ads SDK implementation options that we have released and can be used.

Wortise Ads Sdk

1. Open build.gradle (Module: app) and change the implementation to wortise-ads-sdk

implementation 'com.github.solodroid-dev:wortise-ads-sdk:2.+'


2. Open settings.gradle (Project Settings) and update the dependencyResolutionManagement


dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://android-sdk.is.com/' }
maven { url 'https://unity3ddist.jfrog.io/artifactory/unity-mediation-mvn-prod-local/' }
maven { url 'https://maven.wortise.com/artifactory/public' }
maven { url 'https://artifact.bytedance.com/repository/pangle' }
maven { url 'https://cboost.jfrog.io/artifactory/chartboost-ads/' }
maven { url 'https://maven.ogury.co' }
maven { url 'https://developer.huawei.com/repo/' }
}
}

3. Sync Now and the project is ready to be built

For other ad network sdk implementation options, simply change the sdk name in the build.gradle file (Module: app)

AdMob Ads Sdk

implementation 'com.github.solodroid-dev:admob-ads-sdk:1.+'

Unity Ads Sdk

implementation 'com.github.solodroid-dev:unity-ads-sdk:1.+'

Thursday, June 13, 2024

Fix Play Store warnings because outdated PlayCore SDK

Today, when you want to publish or update an app, Google Play asks for: com.google.android.play:core added the following note for core (1.10.3):

If your app is targeting SDK 34+ (targetSdkVersion), then the PlayCore SDK is outdated and will likely cause crashes in your app! Please update: https://developer.android.com/guide/playcore#playcore-migration

To solve this problem in our code, it is necessary to update the dependencies in the build.gradle (Module: app) file and in the MainActivity.java file. This applies in general to all codes from solodroid.

Step 1 (Updating dependencies)

Open the build.gradle (Module: app) file, find the library implementation below and remove it.

implementation 'com.google.android.play:core:1.10.3'

Add or change it with the 2 new libraries implementation below and Sync now.
implementation 'com.google.android.play:review:2.0.1'
implementation 'com.google.android.play:app-update:2.1.0'

Step 2 (Updating MainActivity.java)

Open the MainActivity.java file, find the following code below, for quick search, use Ctrl + F.
import com.google.android.play.core.tasks.Task;

Replace it with the code below, to make it faster, you can use Ctrl + R to replace the code with a new one:
import com.google.android.gms.tasks.Task;

Sunday, February 18, 2024

Solodroid project ad network sdk implementation options

We provide several choices of ad network libraries that you can customize yourself based on monetization needs for your application.

The library implementation can be managed easily in the Android Studio project dependencies in the build.gradle (Module: app) file



1. AdMob ads sdk (recommended) 👍

admob-ads-sdk: using 1 main ads vendors from Google, overall it supports 2 ad networks: AdMob and Google Ad Manager. This library is suitable if you only want to monetize your app with ad providers from Google officially. The apk/aab file size will be smaller compared to using multi-ads-sdk because fewer ad libraries are used.
build.gradle (Module: app)
implementation 'com.github.solodroid-dev:admob-ads-sdk:1.+'

2. Simple ads sdk (default) 👍

simple-ads-sdk: using 2 main ads vendors from Google and Facebook, overall it supports 3 ad networks: AdMob, Google Ad Manager and Meta Audience Network. This library is suitable if you only want to monetize your app with one or both of these ad providers from Google and Facebook. The apk/aab file size will be smaller compared to using multi-ads-sdk because fewer ad libraries are used.
build.gradle (Module: app)
implementation 'com.github.solodroid-dev:simple-ads-sdk:1.+'

3. Triple ads sdk

triple-ads-sdk: using 3 main ads vendors from Google, Facebook and AppLovin, overall it supports 5 ad networks: AdMob, Google Ad Manager, Meta Audience Network, AppLovin Max and AppLovin Discovery. This library is suitable for those of you who want to use multiple ad networks from many vendors and to maximize the concept of switch ads and backup ads to switch between using other ad networks if one or several ad networks you use have problems. The apk/aab file size will be slightly larger around 2-4 Mb due to more ad libraries are used.
build.gradle (Module: app)
implementation 'com.github.solodroid-dev:triple-ads-sdk:1.+'

4. Multi ads sdk

multi-ads-sdk: full integration with 9 ad networks. This library is suitable for those of you who want to use multiple ad networks from many vendors and to maximize the concept of switch ads and backup ads to switch between using other ad networks if one or several ad networks you use have problems. The apk/aab file size will be slightly larger around 3-5 Mb due to more ad libraries are used.
implementation 'com.github.solodroid-dev:multi-ads-sdk:1.+'
Important: using multiple-ads-sdk there are some risks, your application or Google Play account may be removed or even suspended because there are potential ad networks sdk other than Google and Facebook such as AppLovin, Unity ads, Start.io, ironSource and Wortise may be against Google Play policy.

5. No ads sdk

no-ads-sdk: Use this library if you don't want to monetize your app with any ad network at all.
implementation 'com.github.solodroid-dev:no-ads-sdk:1.+' 
Important : All ad network id units are placed in admin panel except AdMob App ID and AppLovin SDK Key, both ids must be integrated programmatically in android code inside res/value/ads.xml


Especially for Audience NetworkAudience Network, If you choose to use Audience Network Bidding, please select Ad Network Type to be AdMob, Google Ad Manager, AppLovin Max or IronSource These Ad Networks support being a Mediation Partner although it's still a Beta version.



Thursday, February 1, 2024

SDK migration to fix failed builds for all Solodroid Projects

The problem with the Android Studio project failing to build is because currently our library cannot be accessed after an incident involving an attack on our GitHub account, which caused our account to be flagged and inaccessible to the public.

We apologize in advance because it is out of our control, to resolve this issue, we have created an alternative SDK migration so that the project can be rebuilt.

Do the steps below:
  • Open the build.gradle (Module: app) file
  • Change the dependencies name for Ad Network and Push Notification
  • Click Sync now to re-sync the project using the new library

Old library dependencies:
  • com.github.solodroidx:simple-ads-sdk:1.+
  • com.github.solodroidx:solodroidx-push-sdk:1.+

Change library dependencies to:
  • com.github.solodroid-dev:simple-ads-sdk:1.+
  • com.github.solodroid-dev:push-notification-sdk:1.+

Screenshot implementation:

That's all you have to do and the Android Studio project will be able to be built again.

Video tutorial:

Note:
  • simple-ads-sdk is used by default, you also can change it to other sdk options like: admob-ads-sdk, triple-ads-sdk or multi-ads-sdk
  • If the old SDK is defined with a certain version, for example 1.1.1, you need to change it to 1.+
  • This issue will not impact apps that have previously been built or published to Google Play, it only applies to new builds.

Saturday, May 6, 2023

Splash screen duration is getting longer, what is the solution?

Regarding the addition of the lauch duration of the app in the splash screen, the application has 2 methods:

  1. Force display App Open Ads
  2. Skip App Open Ads on Start App

If option number 1 is used, then the application works as follows:

  • Splash Screen > Load config.json > Load App Open Ads and Show > Start the Main Menu

In the load open ads process, this makes the duration of the splash screen longer because there is a process of loading ads from ad networks and waiting for a response from the ad to be displayed first before the user enters the application.

If option number 2 is used, the application works as follows:

  • Splash Screen > Load config.json > Start the Main Menu

In this option, the process of opening the application after splash is faster than number 1, because no open ads are displayed when the user starts the application, but open ads will still appear when the user opens the application from the background to the foreground or when user resume the app.

App Open Ads can be disabled from json remote config.




Friday, December 16, 2022

Change the launcher icon in Android Studio

The first step before changing the logo, it is highly recommended to delete the mipmap folder first

Then, after you delete the mipmap folder, the next steps are as follows:

  • Open Android Studio → File → New → Image Asset

  • You can choose 2 types of your icon type, that is Launcher Icon (Adaptive and Legacy) or (Legacy Only)

  • Recommended to use Launcher Icon (Adaptive and Legacy)

  • Browse and choose your image file icon (.png) format with square dimension and start customize your icon

  • Make sure the resource name is "ic_launcher" → Next

  • Make sure the selected Res Directory is "Main" → Finish

Important Note :

To prevent errors when changing the application logo, make sure you have deleted the mipmap folder first, if not, you need to repeate this steps to change the app logo at least 2 times, because in some cases, when you change the app logo without deleting the mipmpa folder, there may be a problem and the logo is not saved in the mipmap folder, most likely this is a bugs in Android Studio, if this problem occurs, please repeat the steps to change the app logo again and the problem will be resolved.