Android app starts updating with cordova-webintent and force stops
<p><strong>Steps:</strong></p>
<ol>
<li><p>I Opened the android application (built with <code>cordova</code>)</p>
</li>
<li><p>Then I called <a href="https://github.com/Initsogar/cordova-webintent" rel="noreferrer"><code>cordova-webintent</code></a> for installing updates</p>
</li>
<li><p>I pressed Install and it starts installing, but after a few seconds, the app force stops and shuts instead of installing and opening the updated app.</p>
</li>
</ol>
<p>This problem appeared some time ago and I can't understand why this happened, because the version of <code>cordova-webintent</code> and <code>cordova</code> are the same.</p>
<ol start="4">
<li>After the app force stopped, I tapped on the application icon, but there is a message that &quot;App isn't installed&quot;. The app continues installing in the background after some seconds. I tapped again on the application icon and the updated application opened.</li>
</ol>
<p>Why is the app force stopping while installing?</p>
<p>Logs:</p>
<pre><code>E:\work\hello1&gt;adb logcat ActivityManager:I com.example.hello1:D *:S

--------- beginning of system

I/ActivityManager(  715): [Background Service Priority Adjustment] Set callerFg as false for service.getFlags():260

I/ActivityManager(  715): START u0 {act=android.intent.action.VIEW dat=file:///storage/emulated/0/filename1.apk typ=application/vnd.android.package-archive cmp=com.android.packageinstaller/.PackageInstallerActivity} from uid 10657 on display 0

--------- beginning of main

I/ActivityManager(  715): START u0 {dat=file:///storage/emulated/0/filename1.apk cmp=com.android.packageinstaller/.InstallAppProgress (has extras)} from uid 10072 on display 0
I/ActivityManager(  715): [AppLaunch] Displayed Displayed com.android.packageinstaller/.InstallAppProgress: +135ms

I/ActivityManager(  715): Force stopping com.example.hello1 appid=10657 user=-1: uninstall pkg

I/ActivityManager(  715): Killing 19149:com.example.hello1/u0a657 (adj 1): stop com.example.hello1

W/ActivityManager(  715): notify app switch quit packageName=com.example.hello1
I/ActivityManager(  715):   Force finishing activity ActivityRecord{16a2ad7e u0 com.example.hello1/.MainActivity t2758}

I/ActivityManager(  715):   Force finishing activity ActivityRecord{32eb6933 u0 com.android.packageinstaller/.InstallAppProgress t2758}

**W/ActivityManager(  715): Spurious death for ProcessRecord{2590ad4d 19149:com.example.hello1/u0a657}, curProc for 19149: null**

I/ActivityManager(  715): Force stopping com.example.hello1 appid=10657 user=-1: update pkg
I/ActivityManager(  715): Force stopping com.example.hello1 appid=10657 user=0: pkg removed
</code></pre>