Home screen – How to close apps when I lock the phone

My problem: When I unlock my phone, the app I last used is open (I mean in the foreground). This is probably so intended. But I want to change that because I think it very often distracts me from what I wanted to do with my phone.

So I need a solution that basically opens the splash screen (and minimizes all apps) when I unlock the phone (or, ideally, when I lock it).

As an illustration, I do not want to stop apps running in the background, but I want to minimize all currently running apps.

To disable apps for a certain period of time

I'm trying to reduce the screen time on my iPhone and iPad. At the moment I'm using the screen time tracker from the settings, but that's not enough. All it can do is remind you that after some time you will not be on your phone anymore. I wonder if there is a better way for people without willpower. Is it possible to disable your apps for a period of time that you specify without bypassing them?

Google Apps script – auto-answer out of hours in Gmail

I try to automatically answer e-mails received outside office hours. The holiday helper does not allow this. Business hours are Monday to Thursday from 8:30 to 16:00 and Friday from 8:30 to 12:00 (CEST). Below is the script I'm using. Is there a way to add the MTN time zone to this script so that it is sent at the right times for the right time zone?

function autoReply() {
  var interval = 5;    //  if the script runs every 5 minutes; change otherwise
  var date = new Date();
  var day = date.getDay();
  var hour = date.getHours();
  if ((5,6,0).indexOf(day) > -1 || (day == 1 && hour < 8) || (day == 4 && hour >= 17)) {
    var timeFrom = Math.floor(date.valueOf()/1000) - 60 * interval;
    var threads = GmailApp.search('is:inbox after:' + timeFrom);
    for (var i = 0; i < threads.length; i++) {
      threads(i).reply("I am out of office. Your email will not seen until Monday morning.");
    }
  }
}

Attempting to use the AngularFire module for cloud messaging will result in configuration values ​​for missing apps

I use Firebase Cloud Messaging in my Angular app with AngularFire2 to receive and send notifications. However, if an attempt is made to retrieve the user's current token, the app returns an error.

I've already created the firebase-messaging-sw.js and manifest.json files to register the service rep and added everything correctly, but to no avail.

The component where I subscribe to the observable.

export class HomeComponent implements OnInit {
  constructor(
    private afMessaging: AngularFireMessaging,
    private afStore: AngularFirestore,
    private afAuth: AngularFireAuth,
  ) {}

  ngOnInit() {
    this.afAuth.user.pipe(
      exhaustMap(
        user => {
          return this.afMessaging.getToken.pipe(
            tap(
              token => {
                console.log(token);
                this.afStore.collection('users').doc(user.uid).update({
                  fcmToken: token
                });
              }
            )
          );
        }
      )
    ).subscribe();
    this.afMessaging.messages
      .subscribe((message) => { console.log(message); });
  }
}

The service employee:

  // Give the service worker access to Firebase Messaging.
  // Note that you can only use Firebase Messaging here, other Firebase libraries
// are not available in the service worker.
importScripts("https://www.gstatic.com/firebasejs/6.3.4/firebase-app.js");
importScripts("https://www.gstatic.com/firebasejs/6.3.4/firebase-messaging.js");

// Initialize the Firebase app in the service worker by passing in the
// messagingSenderId.
firebase.initializeApp({
  messagingSenderId: "231973795174"
});

// Retrieve an instance of Firebase Messaging so that it can handle background
// messages.
const messaging = firebase.messaging();

messaging.setBackgroundMessageHandler(function(payload) {
  console.log(
    "(firebase-messaging-sw.js) Received background message ",
    payload
  );
  // Customize notification here
  const notificationTitle = "Background Message Title";
  const notificationOptions = {
    body: "Background Message body.",
    icon: "/firebase-logo.png"
  };

  return self.registration.showNotification(
    notificationTitle,
    notificationOptions
  );
});

The manifesto

{
  "name": "App",
  "gcm_sender_id": "103953800507"
}

The Angular.json

"assets": (
    "src/favicon.ico",
    "src/assets",
    "src/firebase-messaging-sw.js",
    "src/manifest.json"
 ),

The error I get in detail is this:

Uninhibited (Promise): FirebaseError: Installations: Missing app configuration values. (installations / missing-app-config-values).
FirebaseError: Installations: Missing app configuration values. (installations / missing-app-config-values).
at extractAppConfig (index.esm.js: 89)
Object.factoryMethod (as installations) (index.esm.js: 1110)
at FirebaseAppImpl.push ../ node_modules/@firebase/app/dist/index.cjs.js.FirebaseAppImpl._getService (index.cjs.js: 191)
at FirebaseAppImpl.firebaseAppImpl. (as installations) (index.cjs.js: 458)
at index.esm.js: 415
at step (tslib.es6.js: 99)
at Object.next (tslib.es6.js: 80)
at tslib.es6.js: 73
new ZoneAwarePromise (zone-evergreen.js: 876)
at __awaiter (tslib.es6.js: 69)
at resolvePromise (zone-evergreen.js: 797)
at zone-evergreen.js: 707
at zone-evergreen.js: 723
at ZoneDelegate.invoke (zone-evergreen.js: 359)
Object.onInvoke (core.js: 39698)
at ZoneDelegate.invoke (zone-evergreen.js: 358)
at Zone.run (zone-evergreen.js: 124)
at zone-evergreen.js: 855
at ZoneDelegate.invokeTask (zone-evergreen.js: 391)
Object.onInvokeTask (core.js: 39679)

Web server – Good way to publish an API to other apps, REST web server?

I'm developing an app that communicates with different servers in different ways. It will be a middle tier to transport data (files, messages) for other apps.

Any other app running on the same phone must be able to submit a transfer request or receive a response to a request sent through my app.

First, I wanted to run a minimal web server and have a REST API for other apps. It would be clean in the way other apps just need to be able to make http requests, but I'm not sure how to implement it in a good way to run it on Android to let?

Are there any other good ways to communicate from app to app? How can one app notify another that a change has occurred on a remote server?

I hope the question is clear enough for an answer. I'm not very far in building the app, I wanted to ask early, before too much was decided.

Google Apps script – reference formulas from one sheet to multiple sheets

I want to reference (drag) formulas (not the result of the formula) from one leaf to several leaves so that they are calculated on the referenced leaf. For example, if I have = SUM (Q2: X2) in a formula sheet, I would like to drag that into 10 other sheets (Budget A-Sheet, Budget B-Sheet, etc.) so that it sums Q2: X2 for each sheet will not be referenced on the form sheet. I have many budget sheets with the same formulas in the same places. However, they can change from quarter to quarter. I want to update the formulas in one place and not in every sheet. I think that could be possible getFormulabut i am very new to scripting and not sure how i would use this.

Wireless Network – Dad's phone does not connect to specific websites, and certain apps do not log in to his home, they work for me

So I bought my dad a new Motorola G7 Power phone to replace his old phone. Since he does not want to pay for data – and the plan is mainly data – I disabled his data plan connection. Usually he receives the Internet via WLAN via his router. His old phone was configured the same way.

After about a week on the new phone, we noticed that some – but not all – websites seem inaccessible and some phone apps can not log in. His other phone had no such issues with the same apps and websites. My phone connects to seemingly blocked websites without any problems on its network. His Chromebook and his Windows 10 laptop do not have problems on the same websites.

I feared malware because I let Google restore the apps it used on its old phone. However, I brought his new phone to my home to connect to my Wi-Fi network, and now all blocked websites and apps are working properly.

This sounds like his router is blocking certain sites. However, no changes were made to his router (he would not know how and nobody else in the house knows anything about such things). I did not have time to go back and load the admin page of the router to look around, but I doubt very much that there is a blocking of web addresses, mainly because no other devices are blocked. Only this one.

That makes no sense. Any ideas out there?

TO EDIT
As desired, we are located in the south of the USA. The odd selection of inaccessible locations are mainly:
* twitter.com
* kroger.com
* homedepot.com

Websites that can be accessed:
* Facebook
* Google
* Other

Developer – Is Figma or Photoshop better suited to designing and delivering mobile apps to development?

I am a UI designer in a large organization. I use Figma to design an app and I have to pass the design on to developers who are familiar with receiving Photoshop files and do not know Figma. I'm trying to push on Figma, but I'd like to know if Figma developers get what they need to build the app, or if I need to transfer everything to Photoshop and pass it on to them in this way.

android – Best practice for tagging features in mobile apps while avoiding incomplete features?

I wonder how best to handle the scenario in which a mobile app is published that has an incomplete function behind a feature flag in one version and then the full function behind the flag in a subsequent release. t encounter incomplete functionality.

Let's say I'm developing a feature called Weather for my iOS app. I publish an incomplete version of Weather Feature in the App Store in the version 1.1.0 – I put it behind a feature flag called show-weather and I've set that up false in the backend. I will release then version 2.0.0 from my app that did that Weather Feature and Flip show-weather to true in the backend. Oh oh! Users with 1.1.0 Still installed now see an incomplete version of the Weather Feature.

Ideas for mitigation:

  • The app sends its version number to the backend when feature flags are retrieved and sends the backend false if the app version is too low
  • The app implementation mocks the response of the feature flag service in the release 1.1.0 hand back false and replaces the mock with a true backend integration with the release 2.0.0
  • Users are forced to update the app once a featured feature is completed
  • Developers do not merge incomplete features – feature flags are only used to change the appearance of fully realized features

The last two options do not seem to be optimal. We do not want to put users into JAR mode often. and we do not want developers having to maintain long-term offices.

The first 2 might work, but it seems like something on the backend or frontend could easily be forgotten.

What is an optimal solution for this scenario?

GUI design – information about commands in UWP apps. Which commanding approach is best? Office like?, UWP? or classic win32?

I'm writing an app using the UWP-Windows 10-1903 (Universal Windows) platform to create electrical circuits, designs, and simulations. The user creates a design on the screen with resistors, generators, etc. and performs simulations in the time and frequency domain. It is intended for professional use and not free.

Target devices are desktop (keyboard + mouse) and tablet (finger-touch). It might be nice to add the phone option, but it might not be possible because Windows Phone has died.

I chose the UWP platform because the store is very helpful in the infrastructure for selling the app. The multi-device paradigm is also attractive. The user can work hard on the desktop and then check a few things in tablet mode when he or she drinks a beer in the bar.

That is, I try to design the commanding pattern.

The app has at least 50 commands, which are grouped in 10 menus. Remember, App is intended as a pro and there are many tools and dialogues that help the user to create his design. The app is loaded with knowledge in electronics.

(I do not use page navigation to display the data.) I use the docking manager for SyncFusion windows, as there can be many windows with data, curves, and circuits, which can be annoying.)

Possible approaches to commands are:

  1. "Classic like win32" MenuBar, with icon + text for menu items. This includes the file menu.
    Classic menu like Win32
  2. UWP CommandBar above with icons and menu flyouts. Seems nice and attractive.
    UWP CommandBar
  3. Ribbon menu bar and backstage view (for the file command menu). Like MS Office 2016, 2019 .., etc

    Office ribbon
    Backstage view in full screen mode

My question is, what approach should I choose? and why? I'm hesitant.

I have seen many examples of different Windows and UWP apps. However, there is no consistency, and each app seems to follow their own preferences.

Examples:

  • Paint 3D: has a top command bar, but with backstage view for "File menu" commands.
  • Win10-1903 Classic Paint: Has a ribbon for the command groups Start and View, but without backstage view, just a classic file menu at the top left.
  • Office 2019: Full ribbon with backstage view for "old file menu". Setting command in the backstage view
  • Microsoft Edge: Has an upper command bar, with most commands grouped as secondary commands and displayed as a flyout menu with the … button.
  • Win10-1903 3D Viewer App: Has a UWP menu bar (icon + text elements), but the file commands are in a simple menu in classic format! (what happened to the backstage view ??), another weird thing, the settings command (gear icon) is in the Help menu, not in the file menu.
  • (Save) DrawingBoard-Pro: Has an upper command bar, but file commands are on a lower command bar.
  • Windows BuildCast UWP Example: Navigation pattern with Hamburger icon in the upper left corner, with almost no commands. Command Settings at the bottom of the navigation area.
  • Win10-1903 Video Editor: Has the top command bar with a few primary and a few more secondary commands. nice example.

All these different and contradictory examples left me in doubt as to what to do. Which approach should I use for my app? For example, should I create a backstage view?

After that, I add a side question that concerns me a lot.
Many apps in the MS store seem like toys or shitty and are not geared to serious work. I mean, there are no serious big apps like CorelDRAW, AutoCAD, Adobe Photoshop or Autodesk Eagle. All these little apps in the Microsoft Store look great in their UX, but are very limited in their abilities (and cheap). And UWP apps with desktop counterparts are inferior to their Dekstop versions. (VLC player is an example) Why all this?

I mean, there are a lot of apps in the store to look at the atlas of the human body, apps to retrieve the chemical periodic table, apps to check the physical laws or calculate resistors for a voltage divider, apps like social networks, music listening apps, apps for Checking the weather, watching movies, games, email, calendars, etc. It's as if the usage pattern is "Open app" -> "Use app" -> "Close app".

But there is almost no app with the classic use for design patterns, such as: new or opened file -> user edited design -> save file -> share, or send by e-mail or print on paper. It seems that the apps are no longer "file-oriented", is that "old-fashioned"?

If I'm ready to develop a reputable app for creating electrical / electronic designs, is not UWP and the MS Store the best approach or option? Should I develop in WPF?

Thank you in advance and sorry, if I have done that extremely long.