Posts

Showing posts from March, 2025

πŸ“¨ "SEND_SMS" or Intent.ACTION_SENDTO Permission Not Allowed in App - Android OS 15

 In Android 15 (API level 34) , the SEND_SMS permission is restricted for most apps. This change is part of Google's security enhancements to prevent misuse and protect user privacy. πŸ”Ž Why You See This Error Restricted Permissions : Starting from Android 15, only default SMS apps or apps granted special carrier privileges can request the SEND_SMS permission. Non-Default Apps : If your app is not the system's default SMS app, it cannot send SMS using the SmsManager or Intent.ACTION_SENDTO . βœ… Solutions and Workarounds Here are a few options depending on your app's needs: 1. Check if Your App is the Default SMS App If your app is a messaging app, request users to set it as the default SMS app using this intent: Intent intent = new Intent (Telephony.Sms.Intents.ACTION_CHANGE_DEFAULT); intent.putExtra(Telephony.Sms.Intents.EXTRA_PACKAGE_NAME, getPackageName()); startActivity(intent); 2. Use SMS Verification API (For OTPs) If you're sending S...

πŸ› οΈ How to remove unwanted or unused plugins from Angular or node project?

 Here’s a simple approach to find and remove unused dependencies in your Ionic 3 & Angular 5 app: Steps to Remove Unused Dependencies 1. Identify Unused Dependencies Use the depcheck tool to check which dependencies are unused. Install depcheck globally npm install -g depcheck Run depcheck in your project root depcheck It will list: Unused dependencies (can be removed) Missing dependencies (need to be installed) 2. Remove Unused Dependencies Once identified, uninstall them: npm uninstall package-name Or remove multiple at once: npm uninstall package1 package2 package3 3. Check Cordova Plugins Run: cordova plugin list Manually remove unnecessary plugins: cordova plugin remove plugin-name 4. Clean node_modules and Reinstall rm -rf node_modules package-lock.json npm install 5. Optimize Your Build Run: npm run build --prod to ensure performance improvements.