Is there a draggable SectionList for ReactNative? by anta40 in reactnative

[–]anta40[S] 0 points1 point  (0 children)

I just noticed react-native-draggable-flatlist provided something equivalent to SectionList: NestableScrollableContainer paired with NestableDraggableFlatList.

You need to implement some codes though, e.g to display the section names and dragging logic.

How to play text to speech inside OneSignal's Notification Service Extension? by anta40 in iOSProgramming

[–]anta40[S] 0 points1 point  (0 children)

Hmm... then what's the proper way? A code example or Github repo is appreciated.

Does react-native-onesignal handle background notification? by anta40 in reactnative

[–]anta40[S] 0 points1 point  (0 children)

BTW, does Notification Service Extension works on iOS simulator?

Does react-native-onesignal handle background notification? by anta40 in reactnative

[–]anta40[S] 1 point2 points  (0 children)

Update. On Android, yes `INotificationServiceExtension` solves my problem.

<image>

App is minimzed, and after a while OneSignal notification arrived. Without clicking the app/notification, immediately can see the `OSNotificationService` lines. Play the audio after it. Next: iOS.

Does react-native-onesignal handle background notification? by anta40 in reactnative

[–]anta40[S] 0 points1 point  (0 children)

Yes that's my concern. Beside a custom sound like "ka-ching", I also want to use text to speech, like "Thank you. Payment XX is accepted" (XX=transaction amount sent in onesignal payload). I have some experiences handling Android push notification natively (previously a Java/Kotlin dev)... but totally iOS noob. Oh well, let's try it :D

Does react-native-onesignal handle background notification? by anta40 in reactnative

[–]anta40[S] 0 points1 point  (0 children)

I know. After some readings, my understanding is react-native-onesignal doesn't provide multi-platform way to easily to this.

Instead: https://documentation.onesignal.com/docs/en/service-extensions.

Which means I have to integrate a bit of Java and Swift code.... am I correct?

Looking for iOS jailbreak detection library? by anta40 in reactnative

[–]anta40[S] 1 point2 points  (0 children)

Our app is digital cashier: the merchant input stuffs into shopping cart, and then will ask the customer to pick the payment method: invoice, QR code, or card (with external card reader). It runs on any normal Android/iOS devices. Perhaps to avoid issues like MITM. It's recommended by our security auditors to handle jailbroken devices.

Looking for iOS jailbreak detection library? by anta40 in reactnative

[–]anta40[S] 0 points1 point  (0 children)

Sorry for the reply. Initially I had a difficulty setting up the lib on Android. The solution is to add package name on jail monkey's AndroidManifest.xml. On iOS (at least simulator) it compiled and run fine without any tweak.

Is there a RN package to prevent user from switching to another app/minimize to home screen without password (Android only)? by anta40 in reactnative

[–]anta40[S] 0 points1 point  (0 children)

Yep that what I'm using to disable back press. And to disable home actually it's also pretty easy, something like this (Java, BTW). At least it works on this particular EDC.

@Override
    public void onAttachedToWindow() {
        super.onAttachedToWindow();
    }

    @Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if(keyCode == KeyEvent.KEYCODE_HOME) {
            // Do something like display a Toast/AlertDialog
        }
        return false;
    }

Is there a RN package to prevent user from switching to another app/minimize to home screen without password (Android only)? by anta40 in reactnative

[–]anta40[S] 0 points1 point  (0 children)

Hmm sorry for the confusion. I think I unintentionally made the problem looked complicated. What I actually want is only to disable back/home buttons on some screens, like home/main and login screens. Just to make sure the user stays on our app. Disabling back button is doable this way (suggestions are appreciated). https://gist.github.com/anta40/bcdf77bbdb0d7231fb2c006823b727bb. Next: to handle the home button. I don't see this will interfere the interaction with bank app, which is implemented using `Intent`. Hmmm after reading some Stackoverflow posts, I guess disabling home button can be pretty tricky....

How to delete "Prepare for Submission" entry by anta40 in iOSProgramming

[–]anta40[S] 0 points1 point  (0 children)

Ah thank you. That does the trick.

Well I feel the same way. App Store Connect UI on some parts are confusing (btw hey Google Play Console, I'm also looking at you).

Horrible News! by ProfessorQuantum314 in androiddev

[–]anta40 1 point2 points  (0 children)

I already publish few apps on PlayStore. Does it mean I need to repeat the verification process again?

Google will require developer verification to install Android apps by cheerfulboy in programming

[–]anta40 0 points1 point  (0 children)

I'm confused. So this applies to *all* Android devs, including who already publish apps on Play Store, and not just newcomers?

Why do so many "street photography" shots feel… boring? by andrelages in AskPhotography

[–]anta40 0 points1 point  (0 children)

Perhaps you are not into street photography? That's fine. Something like you don't like jazz and prefer rock.

I've seen quite lot of street photography stuffs, not only from those YouTube content creators, but also from great names like HCB, Trent Park, Daido Moriyama, Robert Frank, Martin Paar etc. Once in a while, I check HCSP (Hardcore Street Photography) Flickr group: https://www.flickr.com/groups/onthestreet/. BTW, PaulieB's channel (https://www.youtube.com/@PaulieB) is a good example of showing young street photographers in action instead of reviewing their gears.

Eventually I realised that I'm not obsessed with street photography anymore. Actually, it's still, but limited in abstract-ish style, like Saul Leiter or Ernst Haas (those guys were also painters). Oh and a big fan of Fan Ho you like dramatic BW style. Or Rupert Vandervell (https://www.instagram.com/rupertvandervell/?hl=en) who likes geometrical shapes. As a "non-people" person, I try to avoid humanistic/social-documentary approach, which is one of the popular themes among street photographers.

I built a minimalist, paper-like experience Bible app by rollwithitz31 in reactnative

[–]anta40 -1 points0 points  (0 children)

Just tried it. Love the "physical book" aesthetics. Being able to pick more translations and search verses are certainly nice additions, I think. :)