ฉันสร้างแอพ Android ที่ใช้แทนหรือควบคุมแอพ Lyft driver โดยพื้นฐานแล้วเมื่อใดก็ตามที่ผู้ใช้ดาวน์โหลดแอพ Android ของฉันมันจะเข้ามาแทนที่แอพ Lyft ของเธอ เธอจะไม่ได้รับการร้องขอการขับขี่ใด ๆ จาก Lyft (แม้ในช่วงกลางของช่วงเวลาที่ยุ่งที่สุด) จากนั้นเมื่อเธอลบแอพของฉันมันจะทำงานได้อย่างสมบูรณ์อีกครั้ง เธอขี่อีกครั้งทันที มันเป็นสิ่งที่แปลกประหลาดที่สุดที่ฉันเคยเห็น และนี่ไม่ได้เป็นแค่เรื่องบังเอิญเมื่อเธอไปฆ่าแอพของเธอมันแสดงให้เห็นว่าโลโก้แอพของฉันเข้ามาแทนที่แอพ Lyft driver
สังเกตเห็นว่ามันมีโลโก้ Lyft เดิม จากนั้นเมื่อติดตั้งแอพของฉันมันมีโลโก้ของฉันสำหรับแอพ Lyft (โลโก้ของฉันเป็นเพียงโลโก้เริ่มต้นของ Android) เธอยังสามารถฆ่าแอพของฉันและแอพ Lyft และ Uber driver ไม่ทำงาน! วิธีเดียวในการแก้ไขคือถอนการติดตั้งแอพของฉันและรีสตาร์ทโทรศัพท์ จากนั้นทุกอย่างทำงานได้อย่างสมบูรณ์ องค์ประกอบที่สำคัญอย่างหนึ่งคือฉันจะติดตามตำแหน่งตลอดเวลา ฉันไม่แน่ใจจริงๆว่าจะเริ่มจากจุดบกพร่องนี้ได้อย่างไร ขอบคุณ! ผู้ใช้ใช้ Galaxy Note 10+ กับ Android 10. ไม่มีผู้ใช้ Android คนอื่นของเราที่บอกเราเกี่ยวกับปัญหานี้ ดูเหมือนจะเป็นกรณีพิเศษสำหรับโทรศัพท์นี้
นี่คือรายการและเจตนาทั้งหมดของฉัน:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.danieljones.nomad_drivers">
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACTIVITY_RECOGNITION"/>
<application
android:requestLegacyExternalStorage="true"
android:name=".parse.Parse"
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".checkIn.CheckInActivity"
android:label="@string/title_activity_check_in"/>
<activity android:name=".insurance.analysis_activity.ZendriveAnalysisActivity" />
<activity android:name=".fare.breakdowns.FareBreakdownActivity" />
<activity
android:name=".navigation.HomeNavigationActivity"
android:label="@string/title_activity_home_navigation"
android:screenOrientation="portrait"/>
<activity android:name=".welcome.LoginActivity" />
<activity android:name=".welcome.special_code.CodeActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".new_rides.ride_detail.NewRideDetailActivity" />
<activity android:name=".rides_lists.ride_detail.RideDetailActivity" />
<activity android:name=".personal_rides.ride_detail.PersonalRideDetailActivity" />
<activity android:name=".review_list.ReviewActivity"/>
<activity android:name=".user_profile.driver_card.EditProfileActivity" />
<activity android:name=".user_profile.edit_form.EditProfileFormActivity"/>
<receiver android:name=".insurance.zendrive.MyZendriveBroadcastReceiver" />
<activity android:name=".archived_rides.ride_detail.ArchivedRideDetailActivity" />
<service
android:name="com.parse.fcm.ParseFirebaseMessagingService"
android:permission="false">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT"/>
</intent-filter>
</service>
<receiver
android:name=".push_notifications.ParseCustomBroadcastReceiver"
android:exported="false">
<intent-filter>
<action android:name="com.parse.push.intent.RECEIVE" />
<action android:name="com.parse.push.intent.DELETE" />
<action android:name="com.parse.push.intent.OPEN" />
</intent-filter>
</receiver>
</application>
Context.registerReceiver() PackageManagerดู: วิธีการสร้าง / ปิดใช้งานตัวกรองเจตนาโดยวิธีที่ตั้งโปรแกรมได้?