Home Blog Page 20

javascript – Auth0 login redirect failing with “Community connection was misplaced” error on Capacitor iOS app


I’m integrating Auth0 login with my Vue SPA utilizing Capacitor for an iOS native app. The app runs on an iOS emulator (iPhone 16 Professional, iOS 16.0+), however login persistently fails at auth0.handleRedirectCallback with a community error:

Error: “The community connection was misplaced”

Notably, after accessing the Auth0 login area as soon as, the connection to this particular area (login.acme.com or staging-login.acme.dev) stops working fully till the emulator is totally reset. Different web sites proceed working usually.

Steps to Reproduce

  1. Launch the Capacitor Vue app within the iOS emulator.
  2. Provoke Auth0 login (opens Auth0 URL in browser plugin)
  3. Full login efficiently, Auth0 redirects again to the app utilizing customized URL scheme.
  4. The app handles redirect through handleRedirectCallback.
  5. Observe instant “Community connection was misplaced” error at this step.

Atmosphere Setup

  • Vue SPA frontend, utilizing Auth0 SDK: @auth0/auth0-spa-js@^2.1.3
  • Capacitor cli model: 7.2.1
  • iOS Emulator: iPhone 16 Professional, iOS 16+
  • Xcode model: 16.3

Related Code

Redirect Callback Dealing with

const createNewSession = async (redirectUrl?: string): Promise => {
  console.log(`[Auth0] Creating new session by calling handleRedirectCallback`);
  if (!auth0Client.worth) {
    throw new Error('No Auth0 Shopper');
  }

  const desiredUrl = redirectUrl ?? window.location.href;
  
  attempt {
    console.log(`[Auth0] dealing with redirect callback utilizing redirectUrl: ${desiredUrl}`);
    const end result = await auth0Client.worth.handleRedirectCallback(desiredUrl); // <-- Fails right here
    console.log('[Auth0] handleRedirectCallback end result', end result);
    
    const sessionAuthenticated = await auth0Client.worth.checkIfAuthenticated();
    if (sessionAuthenticated) {
      return handleAuthenticatedSession(desiredUrl);
    }
  } catch (err) {
    console.error('[Auth0] Error dealing with redirect callback. Uncooked error:', err);
    // Further error dealing with...
  }
};

Capacitor Config (capacitor.config.ts)

import kind { CapacitorConfig } from '@capacitor/cli';

const config: CapacitorConfig = {
  appId: 'com.acme.app',
  appName: 'Acme',
  webDir: 'dist',
  server: {
    hostname: 'localhost',
    allowNavigation: ['staging-login.acme.dev'],
  },
  ios: {
    contentInset: 'all the time',
    limitsNavigationsToAppBoundDomains: false,
  },
  plugins: {
    CapacitorHttp: { enabled: true },
  },
};

export default config;

Redirect URL Technology (Customized Scheme)

const getRedirectUri = (path: string): string => {
  if (Capacitor.isNativePlatform()) {
    const appId = 'com.acme.app'
    const area = import.meta.env.VITE_DOMAIN
    return `${appId}://${area}/capacitor/${appId}/${path}`
  } else {
    // Use window.location.origin for internet builds/dev server
    return `${window.location.origin}/${path}`
  }
}

###Capacitor URL Listener

App.addListener('appUrlOpen', async (occasion: URLOpenListenerEvent) => {
  console.log('[Capacitor] App opened with uncooked URL:', occasion.url)
  const end result = await handleRedirectCallback(occasion.url)
  console.log('[Capacitor] handleRedirectCallback end result', end result)
  await Browser.shut()
})

Instance Redirect URL from logs (anonymized placeholders):

⚡️  [log] - [Capacitor] App opened with uncooked URL: com.acme.app://login.acme.com/capacitor/com.acme.app/login/callback?code=A_CODE&state=A_STATE_STR

Debugging Data

Safari debug

Already Tried Options

  • Restarting emulator/machine solves briefly however the difficulty returns after one profitable connection.
  • Checked SSL certificates on Auth0 domains

Particular Questions

  • Has anybody confronted related persistent community errors particularly with Capacitor and Auth0?
  • May this be one thing to do with App permissions?
  • Any options for additional debugging or data gathering.

AI and the Way forward for Autonomous Autos: Remodeling the Automotive Market with Robotaxis and Freight Logistics

0


The automotive business is primed for fast innovation due to its background of broadly accessible information on roads, autos, and the setting generally. Two key areas stand out: freight transportation and robotaxis. Each sectors supply distinctive alternatives for innovation and effectivity as a result of many years of collected options are lastly reaching the market.

Let’s focus on every course’s options, enterprise assist, and the areas the place additional growth will occur.

Who Leads the Market

The worldwide autonomous car market is primarily formed by three key areas: america, Europe, and China.

Europe is understood for having among the most complete regulatory frameworks on this space. Detailed requirements such because the GDPR, privacy-related necessities, and the just lately adopted EU AI Act can current challenges to innovation. In such a tightly managed setting, know-how growth might proceed extra cautiously.

In distinction, China takes a distinct strategy and actively sponsors AI initiatives. Even when autonomous autos are concerned in incidents, they’re often not pursued in the identical means; they don’t have the identical unfavourable affect on the events concerned. The principle precedence is technological development, which is considered as a profit for the long run.

As for america, earlier than Donald Trump’s presidency, the nation was largely leaving AI initiatives to particular person states. Nonetheless, with the brand new administration got here a strategic shift: the authorities realized that sustaining the previous strategy may trigger the nation to fall into the tech race. Because of this, the U.S. started shifting towards a extra liberal regulatory mannequin — geared toward fostering technological progress and making certain the nation stays aggressive on the worldwide stage, significantly compared to fast-moving developments in China.

Robotaxis

The robotaxi business skilled substantial progress in 2024. In China, Baidu’s Apollo Go operated over 400 autonomous taxis in Wuhan. ​Waymo expanded providers to Los Angeles in america, providing rides to most people and managing over 150,000 weekly journeys. ​Analysts mission that the worldwide robotaxi market will attain $174 billion by 2045, reflecting a 37% compound annual progress price from 2025.

Why are robotaxis changing into more and more standard? There are at the least two key causes for this.

The primary motive is consumer-driven

Customers are occupied with robotaxis as a result of it eliminates many dangers and discomforts related to human drivers. There’s no concern in regards to the driver being drained, aggressive, unstable, or unskilled. Individuals need a automobile that arrives by itself, takes them safely to their vacation spot, and does so reliably.

The second motive is business-oriented

Robotaxis create new enterprise alternatives for people and small entrepreneurs. Very similar to how Airbnb permits residence homeowners to earn earnings by renting out their properties, robotaxis enable anybody to buy a number of autonomous autos, put them on the highway, and generate earnings by managing their fleet. This opens the door to a brand new section of small-scale enterprise and entrepreneurship.

Freight Transportation

The autonomous freight transportation sector has seen important progress and transformation lately. In 2024 the worldwide autonomous truck market was valued at roughly $356.9 billion. These figures are from analysis corporations, though the fact is far greater as a result of logistics is among the many largest industries on the planet primed for disruption.

On daily basis, lots of of 1000’s of vehicles journey the roads of Europe and America, delivering items, Amazon packages, meals merchandise, and extra — numerous huge provide chains value trillions of {dollars}.

This sector’s potential for autonomous vehicles is even higher than passenger transport. Vehicles largely function on lengthy, straight highways, the place situations are extra predictable than in city environments. This makes the duty simpler for autonomous programs.

On the similar time, logistics effectivity will increase considerably:

  • Human drivers have to take breaks for relaxation and sleep to keep away from accidents.
  • An autonomous truck can function nearly continuous, stopping just for refueling or recharging.
  • With enough vary, even these stops might be minimized.
  • Supply velocity will increase, prices lower, and provide chains develop into extra environment friendly.

At Keymakr, we assist a number of main gamers within the autonomous freight business, so we will see improvements that aren’t available on the market but. Our staff works extensively on large-scale annotation initiatives tailor-made for freeway driving situations — together with object detection, lane segmentation, and sensor fusion information for LiDAR and digital camera programs.

The demand for these initiatives highlights the true maturity of the sector.

Enterprise Perspective

Usually, all the pieces associated to the enterprise setting—company transport, B2B options, and so forth — tends to supply larger revenue margins than B2C sectors. Specialised logistics operators are likely to have larger income than taxi service suppliers, with some exceptions, akin to Uber. This is because of totally different pricing ranges, operations scales, and the duties’ particular nature.

One other key distinction is that B2B operates in a extra closed setting and experiences much less public consideration and data noise, whereas B2C is extra depending on the information cycle.

This reduces dangers and simplifies the launch of recent applied sciences. With much less deal with producing consideration, corporations can develop and implement progressive options extra shortly, even when they aren’t totally mature. For these causes, the B2B section will see probably the most energetic growth of autonomous transportation programs, particularly logistics.

The Query of Legal responsibility

Autonomous autos face a tough scenario with legal responsibility — particularly, when an accident happens, who has to take accountability for its penalties? There are various extra events concerned with autonomous automobiles than conventional autos — everybody from the proprietor to the software program developer to the OEMs performs a component of their security.

This query is usually raised, and, in essence, it has already been addressed. The principle accountability will lie with the businesses that handle fleets (fleet managers). These might be giant firms like Uber or Lyft. Such corporations create algorithms and processes for fleet administration, together with routing, upkeep, and authorized features. This mannequin is much like Airbnb: whenever you handle a useful resource, you’re chargeable for it, and the platform supplies a framework to resolve disputes.

Due to this fact, the managing firm may also be accountable for any incidents. The market will prepare a system of insurance coverage for this that may assist decide the precise proportion of legal responsibility for software program builders, {hardware} producers, and different events concerned.

To summarize, the long run belongs to those that can mix technological options, enterprise instinct, and flexibility — these corporations will lead the brand new period of mobility.

A fifth of world farmland contaminated by poisonous metals, says examine



A fifth of world farmland contaminated by poisonous metals, says examine
The examine recognized a high-risk zone stretching throughout southern Europe, the Center East, and South Asia.

Almost a fifth of the world’s agricultural land is contaminated by poisonous metals, posing a critical risk to meals safety, public well being, and ecosystems, in keeping with a brand new world examine printed on 15 April within the journal Science. Researchers have mapped soil air pollution at an unprecedented scale, discovering that greater than 17% of cropland is affected by harmful ranges of metals corresponding to arsenic, lead, and cadmium.

The examine, which used knowledge from almost 800,000 soil samples from all over the world, recognized a beforehand unrecognised high-risk zone stretching throughout southern Europe, the Center East, and South Asia. The contamination is linked to each pure geological processes and centuries of commercial exercise, together with mining and smelting.

With as much as 1.4 billion individuals residing in polluted areas, specialists warn that poisonous metals in soil can enter the meals chain, harming biodiversity and exacerbating poverty. “Soil air pollution isn’t just an environmental challenge—it instantly impacts human well being and world meals safety,” mentioned Rothamsted’s Professor Steve McGrath, who was a part of the multi-institute analysis workforce led by Tsinghua College in Beijing, China.

The findings come at a time of rising concern over soil degradation, significantly as demand for crucial metals will increase because of the transition to inexperienced vitality applied sciences like electrical car batteries and photo voltaic panels. The researchers name for pressing worldwide motion, together with focused funding for air pollution monitoring and soil restoration, significantly in data-poor areas corresponding to Africa and Russia.

Toxic-soils-map-of-the-world
International soil air pollution by poisonous metals exceeding agricultural thresholds. Combination distribution of exceedance of arsenic, cadmium, cobalt, chromium, copper, nickel, and lead; coloration code exhibits the utmost chance of exceedance among the many seven metals

The examine additionally highlights the restrictions of present knowledge, with many distant areas missing adequate soil sampling. Whereas the researchers used machine studying to fill in gaps, they stress that extra detailed, site-specific research are wanted to develop efficient options.

With poisonous metallic air pollution set to rise, the researchers urge policymakers to take speedy motion. “Defending our soils is as essential as defending our air and water. With out clear soil, we can’t produce protected meals,” added McGrath.

The examine provides to rising world concern over the hidden risks of soil air pollution, reinforcing requires stricter environmental laws and sustainable land administration practices.

Inexperienced Certifications in Style: What US Producers Are Doing Proper


Style’s received a brand new thread operating by it—sustainability—and it’s stitching its means into each seam. Gone are the times when model meant waste piled excessive or dyes choking rivers. Right now, it’s about trying sharp whereas protecting the planet in thoughts, and inexperienced certifications are the badges proving it’s actual. These aren’t simply fashionable labels; they promise much less hurt and extra care, from cotton subject to closet.

Throughout the States, makers are stepping up, weaving eco-smarts into their craft with a mixture of grit and ingenuity. It’s a quiet revolution, and US clothes producers are threading the needle good.

Licensed Clear: The Badge of Honor

Image a jacket with a tag that claims greater than “dry clear solely”—it’s received a inexperienced seal, like GOTS or OEKO-TEX, signaling it’s made with out dangerous chemical substances. US makers are nailing this, chasing certifications that vouch for clear dyes, secure materials, and no poisonous runoff.

It’s not straightforward—getting licensed means audits, tracing each thread, and proving the availability chain’s legitimacy. However they’re doing it, swapping harsh chemical substances for plant-based tints or recycled fibers that don’t bleed poison. That badge isn’t only for present—it’s a press release, proof they’re making gear you may put on with out cringing at its environmental impression.

Much less Waste, Extra Style

Style used to have a unclean rep—tons of offcuts and leftovers tossed with out a second thought. Stateside producers are flipping that, chasing zero-waste vibes. Suppose scraps reborn as patches, linings, and even new threads—certifications like Cradle to Cradle assist this method, rewarding loops over landfills.

They’re getting intelligent with design—chopping patterns that waste much less and utilizing materials that benefit from each inch. It’s not simply inexperienced preaching; it’s cash-smart—much less waste, decrease prices, and a narrative that sells. They’re proving luxurious doesn’t want a dumpster dive to shine.

Truthful Fingers, Truthful Threads

Inexperienced’s not nearly dust—it’s about folks. Certifications like Truthful Commerce or SA8000 aren’t only for present—they promise that employees are handled proper, with no sweatshop shortcuts.

US makers are leaning in, making certain cutters and sewers aren’t simply cogs—assume residing wages, secure retailers, and no kid-labor stains. It’s baked into the eco-cert sport: you may’t declare inexperienced if the palms stitching your tee are uncooked. They’re constructing belief—each hem a nod to dignity, each label a promise the chain’s clear from prime to backside.

Power on a Weight loss program

Factories chugging energy prefer it’s free? Not anymore. Inexperienced certifications—assume LEED or Bluesign—push US producers to slim down vitality binges. They’re rigging photo voltaic panels on roofs, swapping previous bulbs for LEDs, and tuning machines to sip, not guzzle.

It’s not low-cost upfront—retrofitting’s a haul—nevertheless it pays lengthy: decrease payments, leaner footprint, and a gold star from eco-watchdogs. They’re not simply chopping carbon; they’re chopping prices, proving inexperienced’s a hustle that hits the pockets and the world proper.

Water Smart and Dye Good

Dyeing’s a thirsty beast—rivers flip rainbow, wells run dry. Not on these shores. Manufacturers are going after certifications that decision for water-wise strikes—like reusing rinse water and chopping down the gallons it takes to make a single shirt. They’re ditching artificial sludge for dyes from beets or indigo that don’t choke streams.

It’s a grind—retooling vats, testing hues—however the payoff’s a tag that claims “clear water authorised.” They’re not simply dyeing material; they’re dyeing responsibly—protecting rivers clear and closets guilt-free, one soak at a time.

Native Roots, International Attain

Why ship cotton midway across the globe? US producers are protecting it shut—certifications like Made in USA or Cotton LEADs nudge them to supply native, trim miles and lower fumes. Consider Texas fields feeding Ohio looms—shorter hauls, much less jet gasoline, and the duplicate killer threads.

It’s not parochial; it’s sensible—tighter loops imply tighter management, more energizing fibers, and a narrative that sings “homegrown.” They’re rooting inexperienced on American soil, proving you don’t want an ocean hop to sew a world hit.

Model Energy, Purchaser Pull

This isn’t charity—it’s technique. Inexperienced certifications flip a shirt right into a sign—consumers snag it understanding it’s vetted, not simply vogue. US makers are betting on that attraction, tagging merchandise and web sites with eco-labels that allow consumers put on their values proudly.

It’s not preachy; it’s revenue—licensed gear that fetches premium, loyal followers and even tax perks in some states. They’re not hiding the hustle—each inexperienced stamp’s a billboard, shouting “We’re legit” to a crowd that cares. It’s a mode with a backbone, and so they’re cashing in.

Stitching the Future

From storage startups to massive looms, US clothes producers are weaving inexperienced into their DNA. Certifications aren’t a burden—they’re a lift, a roadmap to craft that lasts, not trash. Clear dyes, truthful pay, lean vitality—a playbook that retains the planet and the books in test. They’re not excellent; it’s a grind—retooling, rethinking, re-proving each step. However they’re doing it proper—turning vogue from a fling right into a drive, one licensed thread at a time.

Hugging Face bridges hole between AI and bodily world with Pollen Robotics acquisition

0


reachy robot next to a human with a visor and hand controller.

Reachy is a modular humanoid platform designed for analysis. | Credit score: Pollen Robotics

In a call signaling its transfer into the bodily world, synthetic intelligence chief Hugging Face has acquired French robotics agency Pollen Robotics. The businesses yesterday introduced the acquisition for an undisclosed quantity. The acquisition underscores Hugging Face’s ambition to place robots as the following frontier for AI, advocating for an open, accessible, and customizable future.

The driving power behind this push is Hugging Face’s burgeoning robotics initiative, spearheaded by former Tesla engineer Remi Cadene. The acquisition of Pollen Robotics, based in 2016 by Matthieu Lapeyre and Pierre Rouanet, brings that firm’s flagship product, Reachy, into Hugging Face’s portfolio.

The modular humanoid robotic was designed for analysis and schooling. Its newest iteration, Reachy 2, boasts options akin to digital actuality (VR) teleoperation, stereo imaginative and prescient, and spatial audio. The $70,000 robotic is at present deployed in establishments akin to Cornell College and Carnegie Mellon College.

I acquired the chance to work together with Reachy 2 at CES 2025. The platform contains a wheeled base, two arms, and pincher-like grippers. The demonstrations at CES 2025 had been all run by an onsite operator utilizing a VR headset for telepresence.


SITE AD for the 2025 Robotics Summit registration.
Register now so you do not miss out!


Hugging Face seems to be to embodied AI

The Pollen Robotics staff is pleasant with the open-source group, a side of its go-to-market technique that doubtless attracted the eye of Hugging Face. The firm added that Reachy 2 is appropriate for embodied AI experiments.

“From the beginning, we constructed Pollen Robotics with open supply at its core, pushed by our perception that robots will play a profound position in our lives — serving because the interface between AI and the bodily world.” stated Matthieu Lapeyre, co-founder of Pollen Robotics. “Hugging Face is a pure residence for us to develop, as we share a typical aim: placing AI and robotics within the fingers of everybody.”

Hugging Face added that its strategic acquisition goals to combine its AI instruments with Reachy’s subtle {hardware}. This fusion will empower researchers and builders to assemble tailor-made, open-source robotic methods, breaking down the boundaries imposed by proprietary software program and {hardware}, it asserted.

The firm‘s leaders prompt that this fusion will speed up innovation within the discipline, making superior robotics extra available to a wider viewers.

“We imagine robotics might be the following frontier unlocked by AI — and it needs to be open, inexpensive, and personal,” stated Thomas Wolf, co-founder and chief scientist at Hugging Face. “Our imaginative and prescient: a future the place everybody locally, from hobbyists to enterprises, can construct or use robotic assistants or video games, ranging from open options as a substitute of closed, remote-controlled, {hardware}.”