removed test data, send sms
This commit is contained in:
@@ -58,28 +58,6 @@
|
||||
<category android:name="android.intent.category.BROWSABLE" />
|
||||
</intent-filter>
|
||||
|
||||
<!-- <intent-filter>-->
|
||||
<!-- <data-->
|
||||
<!-- android:host="naviapp.com"-->
|
||||
<!-- android:scheme="navi" />-->
|
||||
<!-- <action android:name="android.intent.action.VIEW" />-->
|
||||
|
||||
<!-- <category android:name="android.intent.category.DEFAULT" />-->
|
||||
<!-- <category android:name="android.intent.category.BROWSABLE" />-->
|
||||
<!-- </intent-filter>-->
|
||||
|
||||
|
||||
<!-- <intent-filter>-->
|
||||
<!-- <data-->
|
||||
<!-- android:host="navi.com.link"-->
|
||||
<!-- android:path="/home"-->
|
||||
<!-- android:scheme="https" />-->
|
||||
<!-- <action android:name="android.intent.action.VIEW" />-->
|
||||
|
||||
<!-- <category android:name="android.intent.category.DEFAULT" />-->
|
||||
<!-- <category android:name="android.intent.category.BROWSABLE" />-->
|
||||
<!-- </intent-filter>-->
|
||||
|
||||
<!-- Branch URI Scheme -->
|
||||
<intent-filter>
|
||||
<data
|
||||
@@ -119,7 +97,7 @@
|
||||
<intent-filter>
|
||||
<data
|
||||
android:host="naviapp.com"
|
||||
android:scheme="satish" />
|
||||
android:scheme="lending" />
|
||||
<action android:name="android.intent.action.VIEW" />
|
||||
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
|
||||
@@ -42,5 +42,6 @@ class FinoramicHelper {
|
||||
|
||||
companion object {
|
||||
const val FINORAMIC_REQ_CODE = 120
|
||||
const val FINORAMIC_REDIRECT_PATH= "lending://naviapp.com/"
|
||||
}
|
||||
}
|
||||
@@ -31,6 +31,7 @@ import com.naviapp.registration.viewmodel.RegistrationVM
|
||||
import com.naviapp.sharedpref.PreferenceManager
|
||||
import com.naviapp.utils.Constants
|
||||
import com.naviapp.utils.Constants.REDIRECT_PAGE_STATUS
|
||||
import com.naviapp.utils.log
|
||||
import com.naviapp.utils.observeNonNull
|
||||
import com.naviapp.utils.observeNullable
|
||||
|
||||
@@ -196,9 +197,18 @@ class PermissionActivity : BaseActivity(), FooterInteractionListener, View.OnCli
|
||||
|
||||
private fun onGrantPermissions() {
|
||||
showLoader()
|
||||
sendSMSDataToFinoramic()
|
||||
sendLocation()
|
||||
}
|
||||
|
||||
private fun sendSMSDataToFinoramic() {
|
||||
try {
|
||||
FinoramicSdk.sendSMS(applicationContext)
|
||||
} catch (e: Exception) {
|
||||
e.log()
|
||||
}
|
||||
}
|
||||
|
||||
private fun sendLocation() {
|
||||
PreferenceManager.setBooleanPreference(NaviLocationManager.IS_HARD_LOCATION_UPDATE, true)
|
||||
naviLocationManager.postLocationData(this)
|
||||
|
||||
@@ -29,6 +29,7 @@ import com.naviapp.common.navigator.ScreenNavigator
|
||||
import com.naviapp.dashboard.listeners.FragmentInterchangeListener
|
||||
import com.naviapp.databinding.UserProfileFragmentBinding
|
||||
import com.naviapp.devicedata.finoramic.FinoramicHelper
|
||||
import com.naviapp.devicedata.finoramic.FinoramicHelper.Companion.FINORAMIC_REDIRECT_PATH
|
||||
import com.naviapp.devicedata.finoramic.FinoramicHelper.Companion.FINORAMIC_REQ_CODE
|
||||
import com.naviapp.errors.activities.ErrorActivity
|
||||
import com.naviapp.firebasedb.*
|
||||
@@ -452,13 +453,11 @@ class ProfileFragment : BaseFragment(),
|
||||
|
||||
fun finoramicSignIn() {
|
||||
context?.let {
|
||||
// val intent = FinoramicSdk.getGoogleSignIn(context, "satish://naviapp.com/", true)
|
||||
// startActivityForResult(intent, FINORAMIC_REQ_CODE)
|
||||
try {
|
||||
val data = getProviderConfig()
|
||||
data?.finoramic?.let {
|
||||
val intent =
|
||||
FinoramicSdk.getGoogleSignIn(context, "satish://naviapp.com/", true)
|
||||
FinoramicSdk.getGoogleSignIn(context, FINORAMIC_REDIRECT_PATH, true)
|
||||
startActivityForResult(intent, FINORAMIC_REQ_CODE)
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
|
||||
Reference in New Issue
Block a user