Skip to content

Instantly share code, notes, and snippets.

View uddish's full-sized avatar

Uddish Verma uddish

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- 🚨 Keep only the permissions used in your app 🚨 -->
<key>NSAppleMusicUsageDescription</key>
<string>YOUR TEXT</string>
<key>NSBluetoothAlwaysUsageDescription</key>
import { Platform, Alert, Linking } from 'react-native';
import { checkMultiplePermissions } from '../../services/permissions';`
// Requesting for the Microphone permission
static async checkForPermissions() {
const permissions =
Platform.OS === 'ios'
? [PERMISSIONS.IOS.MICROPHONE]
: [PERMISSIONS.ANDROID.RECORD_AUDIO];
import {
check,
request,
RESULTS,
requestMultiple,
} from 'react-native-permissions';
// This function can be used anywhere as it supports multiple permissions.
// It checks for permissions and then requests for it.
export async function checkMultiplePermissions(permissions) {
io.sentry.android.core.ApplicationNotResponding: Application Not Responding for at least 5000 ms.
at a.b.a.a.d.h.f.b.a
at a.b.a.a.d.h.b.b.a(SourceFile:69)
at a.b.a.a.d.h.b.b.a(SourceFile:1)
at a.b.a.a.d.h.b.b$j.b(SourceFile:2)
at a.b.a.a.d.h.g.e.b.a(SourceFile:1)
at a.b.a.a.d.h.g.b.c(SourceFile:6)
at a.b.a.a.d.h.g.b.a(SourceFile:9)
at a.b.a.a.d.h.g.e.b.dispatchTouchEvent(SourceFile:1)
at com.uxcam.internals.ag.dispatchTouchEvent
@uddish
uddish / Claiming a lead for Inbound Events
Last active September 19, 2019 06:08
SMS UX piece logic
## What is this claim feature?
We have added a new sidebar on our dashboard which shows all the upcoming inbound events(emails + sms).
This is done so that ops can easily reply to these events directly from the dashboard.
Check this CU task for more details: https://app.clickup.com/t/17r8rh
## How do we populate the side list with the latest inbound events?
Check `LeadJourneyLog.get_latest_claimable_inbound_events()` for the query logic.
## Why is claiming a lead required?
Let's assume that person A from Ops clicked on one of the inbound sms/emails to reply.
FROM cern/cc7-base
# Install required packages
RUN yum -y install \
bzip2 \
git \
kernel-devel \
libcurl-openssl-devel \
libffi-devel \
ncurses-devel \
package com.example.uddishverma.dynamiclayoutsexample;
import android.content.res.Resources;
import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.widget.CheckBox;
import android.widget.EditText;